Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.
BETA

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.

This feature is in Beta and requires enablement. View all early access features.

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

  1. In the left navigation, select Registries.

  2. Find the registry, click the three-dot menu (⋮) at the end of its row, and select Delete.

  3. In the confirmation dialog, type the exact registry name to confirm.

  4. To permanently delete instead of soft delete, select the Permanently delete checkbox.

  5. Click Delete.

Delete from inside the registry

  1. Open the registry you want to delete.

  2. Click the three-dot menu (⋮) next to Setup Client in the top right.

  3. 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

  1. In the left navigation, select Registries.

  2. Click the Show menu above the table and select Deleted.

  3. 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:

  1. Go to Registries > Show: Deleted.

  2. 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

The Delete option does not appear in the menu

Your role may not include Delete permission on Artifact Registry. Contact your account administrator to review your role assignments.

Can I recover a permanently deleted registry?

No. Permanent deletion is irreversible. The registry and all its contents are removed immediately. If you selected permanent delete by mistake, contact Harness Support; recovery is not guaranteed and depends on backup availability.

Storage is still being counted after I soft deleted the registry

Soft deleted items remain in storage until the retention window expires and the scheduled purge runs. To free storage immediately, permanently delete the registry from the Deleted view.

Next steps

Last updated

Was this helpful?