# Deleting a registry

{% note info %}

You can only delete an empty [registry](../../concepts/registry.md). Make sure to [delete Docker images from the registry](../docker-image/docker-image-delete.md) before deleting the registry itself.

{% endnote %}

To access a registry, use its ID or name. For information about how to get the registry ID or name, see [Getting information about registries](../../../iot-core/operations/registry/registry-list.md)

{% list tabs group=instructions %}

- Management console {#console}

  To delete a registry:
  1. In the [management console](https://console.yandex.cloud), select the folder containing the registry.
  1. Navigate to **Container Registry**.
  1. Click ![image](../../../_assets/console-icons/ellipsis-vertical.svg) in the line of the registry to delete.
  1. In the menu that opens, click **Delete**.
  1. In the window that opens, click **Delete**.

- CLI {#cli}

  If you do not have the Yandex Cloud CLI yet, [install and initialize it](../../../cli/quickstart.md#install).

  1. Delete the registry:

     ```bash
     yc container registry delete new-reg
     ```

     Result:

     ```text
     done
     ```

  1. Make sure the registry has been deleted:

     ```bash
     yc container registry list
     ```

     Result:

     ```text
     +----+------+-----------+
     | ID | NAME | FOLDER ID |
     +----+------+-----------+
     +----+------+-----------+
     ```

- API {#api}

  To delete the registry, use the [delete](../../api-ref/Registry/delete.md) method for the [Registry](../../api-ref/Registry/index.md) resource.

{% endlist %}