Getting and deleting page history

john wick June 23, 2024

Hello, im trying to delete old versions of a page.
for that, im trying to list all of the versions and delete them
unfortunately, im not able to retrieve all of the versions.
I am using confluence on-prem  and not cloud one.

Thank you!

2 answers

0 votes
Shawn Doyle - ReleaseTEAM
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 26, 2024

To delete via the API the documentation is here:  

https://developer.atlassian.com/server/confluence/rest/v900/api-group-content-version/#api-rest-api-content-id-version-versionnumber-delete

curl --request DELETE \ --url 'http://{baseurl}/confluence/rest/api/content/{id}/version/{versionNumber}'
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.
June 24, 2024

Hi @john wick and welcome,

you should be able to do that if you have edit permission on a specific page. If so, you should be able to retrieve all old version through page history button :

Immagine.png

Hope this helps,

Fabio

john wick June 25, 2024

Hi @Fabio Racobaldo _Herzum_  i wish to do this from the API.
is there an endpoint for this?

Thanks

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events