Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to delete all trashed page from confluence space using api

AMARJIT GHOH March 24, 2023

I wants to delete all trashed page from confluence space in oneshot, using REST-API using java/python or BATCH file or SHELL script anything should be fine. 

1 answer

0 votes
Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 26, 2023

Hi @AMARJIT GHOH  and welcome,

you need first to retrieve pages in trash using :

https://YOUR_CONFLUENCE_URL/wiki/rest/api/content?spaceKey=NSTC&type=page&status=trashed"

and then delete each page through :

https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page/#api-pages-id-delete

Hope this helps,

Fabio

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events