How to Delete Vultr Container Registry

Updated on November 27, 2024

Deleting a Vultr Container Registry removes all associated repositories and images, helping to manage costs and simplify your infrastructure by eliminating unused or redundant registries. This process ensures that you only retain the resources you need, streamlining your container management.

Follow this guide to delete a container registry on your Vultr account using the Vultr Customer Portal, API, or CLI.

  • Vultr Customer Portal
  • Vultr API
  • Vultr CLI
  1. Navigate to Products and click Container Registry.

    Container Registry in the products menu

  2. Click your target registry to open its management page.

    Selection of a target container registry

  3. Click delete on the top-right of the management page.

    Button to open the delete registry dialog box

  4. Click Destroy Container Registry in the confirmation prompt to permanently delete the target repository.

    Button to confirm the deletion of the registry

  1. Send a GET request to the List Registries endpoint and note the target registry's ID.

    console
    $ curl "https://api.vultr.com/v2/registries" \
        -X GET \
        -H "Authorization: Bearer ${VULTR_API_KEY}"
    
  2. Send a DELETE request to the Delete Registry endpoint to delete the target registry.

    console
    $ curl "https://api.vultr.com/v2/registry/<registry-id>" \
        -X DELETE \
        -H "Authorization: Bearer ${VULTR_API_KEY}"
    
  1. List all registries available in your Vultr account and note the target registry's ID.

    console
    $ vultr-cli container-registry list
    
  2. Delete the target registry.

    console
    $ vultr-cli container-registry delete <registry-id>