Hi,If you are doing deployment manually or CM pipeline there is no automate to revert the code. Usually as part of deployment plan , will take the back up. if you are through CM Pipeline back up will took by pipeline automatically.If the build is failed. Have to roll back the backup package to reins...