I'm trying to delete a page from Confluence and also purge it from the trash using the REST API. I can delete the page fine - however it always ends up in the trash.
According to the documentation for deleting a page: https://docs.atlassian.com/confluence/REST/latest/
If the content is trashable, its status is {@link ContentStatus#TRASHED} and the "status" query parameter in the request is "trashed", the content will be purged from the trash and deleted permanently.
...so I assume all I need to do is add ?trashed to the URL.
When I execute this:
curl -u admin:admin -X DELETE 'http://localhost:8080/confluence/rest/api/content/3604482?trashed'
...the page gets deleted however it's still in the trash.
Does anyone know how to purge a page from the trash using the REST API?
By the way - I'm using Confluence 5.8.5
Thanks!
I think they mean that you need to do ?status=trashed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.