How do you delete an entire page and all children?

SiDawg May 15, 2023

I'm sure there's a way to do this but can't see how? Have reviewed multiple previous posts but they're either out of date or requite plugins. I'm assuming this is a VERY common task?

I'm testing the creation of thousands of pages and need to delete them again so I can recreate them later. 

I've tried using the API to delete them but i get "invalid request" response: GET page works fine, but not DELETE page API... there's almost nothing to the request data so can't see why it would be malformed

2 answers

0 votes
SiDawg May 17, 2023

Found simple fix for delete page API (change type to "DELETE" rather than "DEL")

Still curious if there's an easy way to do this? Having to write code to use "get pages for space", iterate through multiple cursors, list all the data in  a way that's then easy to feed to "delete" api... bit of a headache!

0 votes
David Bakkers
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 16, 2023

"there's almost nothing to the request data so can't see why it would be malformed"

Well, since you didn't provide an example of the 'request data' you're sending to that endpoint, or even advised which 'delete page' endpoint you're referring to, I guess there's no way of knowing.

SiDawg May 17, 2023

Be nice

Like David Bakkers likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events