Rolling Back a Deployment
Rollback lets you restore a Salesforce org to its pre-deployment state. It creates a backup automatically, so if errors or unwanted changes occur, you can quickly return the org to stability.
Overview
Rolling back a deployment reverses the metadata changes from a completed deployment. The Rollback feature:
Uses the pre-deployment backup snapshot stored by the Deploy job.
Restores components to their original state.
Ensures stability after a failed or problematic deployment.
Rollback is crucial in production environments where deployment errors must be rapidly corrected.
Best Practices
Always validate and test before deploying to minimize the need for rollbacks.
Rollback all changed components if the deployment caused major issues.
Use rollback quickly in Production to restore stability.
Review rollback logs to confirm every component was successfully reverted.
After rollback, re-validate the branch before redeploying.
Roll Back a Deployment
Run the Rollback
When performing a Rollback, you will see a list of all components altered during deployment. You can then choose which components to revert.
Click Rollback in the right corner of the Deploy job details page.

Click Select for each deployed component to revert to the pre-deployment backup.
(Optional) Click Select All to include all components.
Click Run to start the rollback.

After starting the Rollback job, it will be displayed on the Activities tab.

Rollback Results
View Results
Click the Activities tab.
Check that the Rollback job status is Completed.
Queued
Job is created and waiting to run.
In Progress
Job is running.
Completed
Job completed successfully.
Exception
Job completed with errors.
Click Rollback to open the Rollback job details.
The Rollback results page lists the job information and a detailed log.
Last updated
Was this helpful?

