-
Type:
Suggestion
-
Resolution: Unresolved
-
Component/s: Packages - Image
-
None
-
1
Problem definition
Bitbucket Packages (container, npm, Maven, PyPI) can only be deleted by hand in the UI. The Bitbucket Cloud REST API has no Packages endpoints, and the container registry doesn’t support OCI DELETE calls. So customers can’t automate cleanup of old versions or tags, which matters more now that Packages bills by usage. Also, if a repository is deleted before its packages, the linked packages become inaccessible and can stay in Atlassian’s systems for up to 30 days. Customers then can’t delete them themselves.
Suggested solution
- Provide an API to list and delete packages, versions and container tags, using the same permissions as the UI.
- Support standard OCI DELETE on the container registry so common tools work.
- Nice to have: retention policies, and an option to delete linked packages when a repository is deleted.
Workaround
- If the repository is already deleted, contact Atlassian Support to have the packages deleted immediately.
- As the documentation says, when a Bitbucket repository is deleted, all packages linked to it become inaccessible and can stay in Atlassian’s systems for up to 30 days.
- To avoid this, delete the packages before you delete the repository.