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
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!
"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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.