When deploying from a repository branch, Release will delete records in your destination org if the records no longer exist in the repository. This feature is disabled by default, however, users can choose to enable this feature using the toggle.
To locate the Allow Deletions toggle:
- Visit Release tab
- Enable Version Control
- Visit the Settings page
- Scroll to Deployment Settings
- Allow Data Deletions toggle will be disabled by default. To activate this feature toggle it on and the toggle will appear in green when it is activated.
Currently, for Org-to-Org and VC-to-Org deployments, deletion will only work for the root object.