How to undo changes an AI agent made to your Shopify store

Updated on

Short answer

Shopify has no undo button for changes an AI agent made, whether the agent is Sidekick or a third-party tool. Stop the agent first, list what it changed, then put back the version from before: the file's Timeline for theme code, a copy for the theme, a backup for products, collections, pages and other content.

If the agent deleted products, Shopify cannot restore them. Only an export or a backup made before the deletion brings them back.

Step by step

  1. Stop the agent.

    With Sidekick, don't publish its drafts, or discard them. For a third-party AI tool connected to your store, Shopify says you revoke its access by uninstalling the integration from your Shopify admin.

  2. List what it changed.

    Ask the agent for every item it edited or deleted, or read its log if it keeps one. Then check each item against your last backup or export.

  3. Put back the theme code.

    In the code editor, open the file, open its Timeline and restore an older version. The whole file is replaced. Asset files have no Timeline, and Shopify says the history is finite.

  4. Put back the theme.

    If you duplicated the theme before the agent worked, publish the copy. Shopify says deleting a theme is permanent.

  5. Put back products, collections, pages and menus.

    From a backup, restore the items that changed, or only the deleted items of a category. The rest of the store stays as it is.

  6. Check what cannot be put back.

    Backup apps keep orders as a record and do not restore them. An email the agent sent to customers cannot be recalled.

What can be undone, and how

What the agent changedIn ShopifyWith a backup
A product's fieldsSet the old values again by hand, if you know themRestore the product
A deleted productCannot be restoredRecreated with its variants and images
A collection, a page or a menuSet it back by handRestore the item
A theme code fileRestore an older version from its Timeline, while it lastsDepends on the app
An orderEdit it again in ShopifyKept as a record, not restored

Before you let an agent edit your store

  • Run a backup on demand just before.
  • Duplicate the live theme.
  • Give the agent only the access the job needs, and remove it when the job is done.
  • Ask it for a list of the changes it makes.

For Sidekick, see Which Shopify backup apps work with Sidekick?. For a product that is already gone, see How to restore a deleted product on Shopify.

Where Starship fits

Starship backs up the whole store outside Shopify, daily, weekly or on demand. It alerts you when items are deleted or emptied, when a price drops or when a new script appears in the live theme. It shows a backed-up item next to the live one, and restores one item or only the deleted items of a category.

Sources

The statements about Shopify on this page come from Shopify's own documentation.

Questions

Can I undo a change Sidekick made?

Before you publish, discard the drafts. After you publish, Shopify says the changes can't be undone automatically: ask Sidekick to set the old values again, if you know them, or restore the previous version from a backup.

How do I stop an AI tool from changing my store?

Uninstall its integration from your Shopify admin: that is how Shopify says an AI tool's access is revoked. Sidekick's changes only reach the store when you publish them.

Can I recover a theme an agent deleted?

Not from Shopify: it says deleting a theme is permanent. Duplicate the theme before an agent edits it.

Does a restore erase the work done since the backup?

No. A full restore returns the entire store to a past moment. Starship restores the chosen object. Whatever happened elsewhere since stays in place.

Keep the version from before.
See it on your store.

Starship backs up your whole Shopify store outside Shopify and restores one item at a time.

Request access