I want to automate deleting certain pages that don't meet certain criteria using the rest api.
At the moment, I have a recursive function that get the children of a page and deletes them using a rest call:
rest.delete(baseUrl + "/content/" + pageId, user, pw);
Using this call, I have to make an API call for every page, which takes ~250 ms per call.
This is too slow for my liking when I have to delete a couple hundred pages.
Is there a way to delete a page and it's children with ONE API call?