How to hide the 'Delete' button in the Page History section

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

The information in this page relates to customizations or development changes in Confluence. Consequently, Atlassian Support cannot guarantee to provide any support for the steps described on this page. Please be aware that this material is provided for your information only and that you use it at your own risk.

Purpose

This article will hide the "Delete" button in the Page History section:

Solution

Hide the element using CSS.

  • In the space where you want to hide that option go to Space Tools > Look and Feel.
  • Select the Stylesheet tab.
  • Add the following CSS code to your Space Stylesheet:
.remove-historical-version-trigger { 
display: none; 
}

This should hide the delete link in the history page for that space.

If changes should be applied to all spaces, add the CSS code above in Confluence Admin >> Stylesheet (Global Stylesheet)

Related Content

Last modified on Jun 1, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.