Delete a registry
Soft delete or permanently delete a registry, restore it from the Deleted view, and understand what happens to its artifacts during retention.
Deleting a registry removes it from the Registries list. Harness supports two deletion modes:
Soft delete: the registry moves to a Deleted view. Its packages, images, and versions are soft deleted at the same time. Nothing is downloadable during the retention window, but you can restore it before the window closes.
Permanent delete: the registry and all its contents are removed immediately. This cannot be undone.
When soft delete is enabled for your account, Harness defaults to soft delete. You can switch to permanent delete in the confirmation dialog.
Before you begin
Your role must include Delete permission on Artifact Registry. Go to RBAC and permissions for details.
Delete from the Registries list
In the left navigation, select Registries.
Find the registry, click the three-dot menu (⋮) at the end of its row, and select Delete.
In the confirmation dialog, type the exact registry name to confirm.
To permanently delete instead of soft delete, select the Permanently delete checkbox.
Click Delete.
Delete from inside the registry
Open the registry you want to delete.
Click the three-dot menu (⋮) next to Setup Client in the top right.
Select Delete and complete the confirmation dialog as described above.
What happens after a soft delete
The registry disappears from the Available list immediately.
Its packages, images, and versions are soft deleted at the same time.
Nothing in the registry is downloadable; clients that attempt to pull receive HTTP 404.
The registry and its contents remain in storage and count toward your storage usage until the retention window expires.
You can restore the registry at any time before the retention window closes.
After restoring an upstream proxy registry, clients must re-pull cached artifacts because the upstream proxy cache is empty after restoration.
Restore a soft deleted registry
In the left navigation, select Registries.
Click the Show menu above the table and select Deleted.
Find the registry, click the three-dot menu (⋮), and select Restore.
The registry returns to the Available list. Its soft deleted artifacts are also restored.
Permanently delete from the Deleted view
If a registry is already soft deleted and you want to remove it immediately:
Go to Registries > Show: Deleted.
Find the registry, click the three-dot menu (⋮), and select Delete.
This is permanent and cannot be undone.
Soft deleted artifact content
The Registries > Deleted view shows registry rows only. To view, restore, or permanently delete individual packages and versions that were soft deleted when the registry was deleted, go to the global Artifacts list and switch Show to Deleted.
Go to Delete an artifact or version for the full artifact deletion workflow.
Troubleshooting
Next steps
Lifecycle management overview to automate cleanup of artifact versions before deletion is needed.
Last updated
Was this helpful?