Issue
When attempting to delete a release via the Sentry CLI or API, the following error is returned
This release is referenced by active issues and cannot be removed. (http status: 400)
How can I delete a release that is no longer needed?
Applies To
- User attempting to delete a release
Resolution
While error events can be deleted, releases may contain data other than errors, such as active sessions or transactions, which cannot be deleted. Generally, we do not recommend deleting releases due to this reason.
If you want to hide the release from the UI, you can archive the release instead.