---
title: "Delete Container Registry"
method: DELETE
path: "/registries/{registryId}"
tags: ["ContainerRegistries"]
---

# Delete Container Registry

`DELETE /registries/{registryId}`

## Request

- Base URL: `https://api.bunny.net/mc`
- URL: `https://api.bunny.net/mc/registries/{registryId}`
- Auth: API key in header `AccessKey`

Deletes a container registry. Returns an error if the registry is currently in use by any applications.

## Path parameters

- `registryId` integer, required

## Response `200`

Container registry was deleted or conflict returned.

- RemoveContainerRegistryResult
  - `status` 'notFound' | 'inUse' | 'removed'
  - `applications` string[], nullable

## Other responses

- `401`: User is unauthorized.
- `409`: Container registry is used.
- `500`: Unexpected server error.

## Changes

- **2026-04-26** `62fb48c758fb`: 3 warning, 7 info
  - added the new `inUse` enum value to the `status` response property for the response status `200`
  - added the new `notFound` enum value to the `status` response property for the response status `200`
  - added the new `removed` enum value to the `status` response property for the response status `200`
  - added the optional property `id` to the response with the `409` status
  - …6 more

[Operation history](https://skmtc.dev/bunny/apis/magic-containers-api/changes/registries/:registryId/delete.md)

---

[API](https://skmtc.dev/bunny/apis/magic-containers-api.md) - [All operations](https://skmtc.dev/bunny/apis/magic-containers-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bunny/apis/magic-containers-api/revisions/7bb58a0591b0?raw)
