If you need to remove a page, folder, image, or document from your website without deleting it from Sitecore, you can unpublish the item using the Content Editor or Media Library. The item will remain in Sitecore (in its original location) and can be edited or republished at any time.
To unpublish an item that's currently visible on your site, follow the steps below:
Unpublish a Page or Folder
- Navigate to the page or folder you wish to unpublish from the content tree.
- If unlocked, select the Lock and Edit link from yellow message bar to edit.
- Navigate to the Publishing Section in the Content Area.
- You can use the Table of Contents icon at the top right of the Content Area to jump to the section.
- You can use the Table of Contents icon at the top right of the Content Area to jump to the section.
- Select the Now link under 'Unpublish'. Once selected, the date and time fields will populate below.
- Select the Internet checkbox under ‘Publishing Targets’ if not already selected.
- Save
your changes.
- Publish the action to ‘Unpublish’ the item.
- Select the Publish Content icon from the Publish tab in the Content Editor ribbon.
-
Unpublish an Image or Document File
- Navigate to the image or document in the media library and select it.
- If unlocked, select the Lock and Edit link from yellow message bar to edit.
- Navigate to the Publishing Section in the Content Area.
- You can use the Table of Contents icon at the top right of the Content Area to jump to the section.
- You can use the Table of Contents icon at the top right of the Content Area to jump to the section.
- Select the Now link under 'Unpublish'. Once selected, the date and time fields will populate below.
-
- Save
your changes.
- Publish the action to ‘Unpublish’ the item.
- Select the Publish Content icon from the Publish tab in the Media Library ribbon.
- Select the Publish Content icon from the Publish tab in the Media Library ribbon.
The image or document file will now be Unpublished from your website. If you were to go to the URL of the item you unpublished, you would receive a 404 error message.