Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

"Restore all" from Trash

Rachel Williams
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 29, 2025

Hey all,

My team has recently noticed that somehow a large number of our pages were moved to the Trash. We're currently migrating from Confluence to ADO so not sure if something went awry in this process, but we need these pages restored so we can migrate them as well. I can only see a way to restore one file at a time, but I think there's over 3,000 pages in the Trash right now so that's not really feasible. This estimate comes from the HTML Inspector in my browser showing at least 3160 rows in the trash table.

Screenshot 2025-08-29 at 2.10.47 PM.png

 

I tried looking into creating a Rule to automate the process, but I don't see any field in CQL that captures if a page is in the Trash (I could be missing something though). I tried asking Atlassian Intelligence to create an automation rule to "Restore all pages from trash", but it seems to just hallucinate a "state" field that fails validation.

 Screenshot 2025-08-29 at 2.12.58 PM.pngScreenshot 2025-08-29 at 2.14.03 PM.png

 

It seems a bit silly there's an option to "Purge all", but not "Restore all" - or even implement multi-select in the UI for that matter. Does anyone have a recommendation for how to remediate this? We just don't have the time as a team to manually restore this many pages individually.

 

Thank you!

2 answers

2 votes
Victor Law - Ricksoft
Community Champion
August 29, 2025

Hi @Rachel Williams

Welcome to the community.

I think you can try to perform a bulk restoration via the following REST API.

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

Screenshot 2025-08-30 at 02.33.57.png

For your information, you can also retrieve the complete list of pages in the trash via the following API endpoint below:

<base_url>/wiki/rest/api/content?type=page&status=trashed

Thank you.

Rachel Williams
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 29, 2025

Thank you Victor! My team will investigate the feasibility of using this API endpoint.

1 vote
Mohamed Benziane
Community Champion
August 29, 2025
Rachel Williams
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 29, 2025

Thank you Mohamed, good to see there's already an open issue for this. My team will investigate the feasibility of using the CLI.

Suggest an answer

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

Atlassian Community Events