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
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.
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.
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.
Put back the theme.
If you duplicated the theme before the agent worked, publish the copy. Shopify says deleting a theme is permanent.
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.
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 changed | In Shopify | With a backup |
|---|---|---|
| A product's fields | Set the old values again by hand, if you know them | Restore the product |
| A deleted product | Cannot be restored | Recreated with its variants and images |
| A collection, a page or a menu | Set it back by hand | Restore the item |
| A theme code file | Restore an older version from its Timeline, while it lasts | Depends on the app |
| An order | Edit it again in Shopify | Kept 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.
