Revert an item, a tree of items, or a database

Current version: 10.2

You can roll back changes and revert items. When you revert items, Sitecore loads the items from the file system and overwrites any changes. Use this procedure to bring the database back to the exact same state as it is in the file system.

Reverting rules

When you revert items, Sitecore loads content from the file system to the database according to the following rules:

  • If an item or an item version exists in the database but there is no such item or item version in the file system, Sitecore deletes it from the database.

  • If an item or an item version exists in the file system but there is no such item or item version in the database, Sitecore adds it to the database.

  • If an item or an item version differs from the corresponding one in the file system, Sitecore overwrites it.

Revert items

You can revert a single item, a tree of items (an item and all its subitems), or a whole database.

To revert an item:

  1. In the Content Editor, select the item that you want to revert.

  2. On the Developer tab, in the Serialize group, click Revert Item.

To revert an item and all its subitems:

  1. In the Content Editor, select the parent item you want to revert with all its subitems.

  2. On the Developer tab, in the Serialize group, click Revert Tree.

To revert the whole database:

  1. In the Content Editor, select any item.

  2. On the Developer tab, in the Serialize group, click Revert Database.

Do you have some feedback for us?

If you have suggestions for improving this article,