How to delete all 2500 pages having their common ancestor id using rest api?
@WojciechThis is going to be a multi step process,
GET <BASE_URL>/rest/api/content?title=<ANCESTOR_TITLE>
GET <BASE_URL>/rest/api/content/search?cql=ancestor=ANCESTOR_ID
DELETE <BASE_URL>/rest/api/content/{CONTENT_ID}
I hope this points you to right direction.
I was afraid I'd have to do it one by one - that can take a while...
@Wojciech Yup! this is time consuming stuff.
I have also seen this add-on popping up in various discussions/questions related to deleting page tree - https://marketplace.atlassian.com/apps/1215148/delete-child-pages-delete-page-tree?hosting=server&tab=overview
Have a look if this can help you.
It's ridiculous to pay additionally for functionality that is already there...
My solution was to ask administrator with highest privileges to click "delete page" and "delete child pages". It took few minutes.
Seems my space privileges weren't enough for this number of subpages.Also DELETE requests take 2-4 seconds each, so it would take a lot of time to do it that way
It looks like you're new here. Sign in or register to get started.