A deployment rollback undoes an unwanted metadata release: restoring changed assets to their earlier versions and removing assets the release added. Salesforce has no built-in undo for deployments, so a rollback is itself a deployment, built from a copy of the org taken before the release. Teams that capture the destination before every production release can roll back in minutes. Teams that did not are left reconstructing the old configuration by hand.
What a Rollback Requires
- A before picture. A metadata snapshot of the destination org from before the release.
- The scope of the release. The list of assets the release created, changed, and deleted.
- A reverse deployment. Earlier versions of changed assets redeployed, new assets deleted, and deleted assets recreated where possible.
- Data awareness. Metadata rollback does not restore data. Records changed by the release, or data in deleted fields, need a separate data backup.
How to Approach a Rollback
- Snapshot the destination before every release so a rollback point always exists.
- Choose the rollback method. For a simple release, reverse the original create and delete lists. For a complex release, compare the backup with the current org to calculate the differences.
- Review the scope. A calculated comparison can include changes that were not part of the release, such as profile changes made by others. Remove anything that should stay.
- Validate, then deploy the rollback like any other deployment.
- Verify the result and check any data the release changed.
How Snapshot Helps
- Roll Back Deployment: choose a backup under Time Series Backups, then use Calculate Differences to compare snapshots or Swap Create And Delete to reverse earlier job lists. Review and adjust the Create Job List (assets to restore or update from the backup) and the Delete Job List (destination assets to remove), then validate and deploy. Neither method guarantees a complete restore, and manual adjustments may be needed.
- Manage Time Series: keeps the saved metadata history of an org, so earlier states are available as rollback points.
- Deployment Results Report: recovers the original Create and Delete job lists of a past deployment.
Validation does not prove that changes occurred or that business behavior is restored. Test the affected processes after a rollback.
Metadata Types Involved
-
Profile: profiles often change outside a release, so review profile differences carefully in a calculated rollback. -
Flow: flows keep versions, so a rollback may mean reactivating an earlier version rather than redeploying.
Common Questions
Does Salesforce have a rollback button for deployments?
No. A deployment that rolls back all changes on error protects against partial failures during the deployment, but a completed deployment can only be reversed by another deployment.
Does rolling back metadata restore data?
No. Metadata rollback restores configuration. Data changed by the release, or data in deleted fields, requires a data backup.
Which is safer, reversing the job lists or calculating differences?
Reversing job lists suits a simple release of creates and deletes. Calculating differences catches everything that changed but can include unrelated changes, so the result needs review.