Hi Everybody,
As a requirement for a solution all data older than a year needs to be permanently deleted on a monthly basis, at the beginning of the month for the previous month. The data source is a SharePoint list and there's possibility of having more than 5000 items per month.
The solution I got working so far is a scheduled cloud flow that uses threads to retrieve the items older than a year (to deal with the possibility of having over 5000 items) and then deletes them permanently:
To get the items

And then to delete them:
union(
outputs('Send_an_HTTP_request_to_SharePoint_-_Get_items_older_than_a_year')[0]['body']['value'],
outputs('Send_an_HTTP_request_to_SharePoint_-_Get_items_older_than_a_year')[1]['body']['value']
)

However, it seems like an extra step to first get the items and then delete them. I believe there must be a way to delete these items directly, but unfortunately my attempts to get "merge" the two HTTP requests have not yet been successful.
Can anybody support me in finding the way to getting this to work?