---
title: dots.v2.registries.byRegistry_name().repositories.byRepository_name().delete()
description: Delete Container Registry Repository
product: Reference
url: https://docs.digitalocean.com/reference/dots/reference/container-registries/registries-delete-repository/
last_updated: "2026-10-27"
---

> **For AI agents:** The documentation index is at [https://docs.digitalocean.com/llms.txt](https://docs.digitalocean.com/llms.txt). Markdown versions of pages use the same URL with `index.html.md` in place of the HTML page (for example, append `index.html.md` to the directory path instead of opening the HTML document).

# dots.v2.registries.byRegistry_name().repositories.byRepository_name().delete()

Generated on 27 Oct 2026 from DoTs version [`v1.21.0`](https://github.com/digitalocean/dots/releases/tag/v1.21.0)

## Usage

```typescript
client.v2.registries.byRegistry_name(registry_name).repositories.byRepository_name(repository_name).delete(requestConfiguration?: RequestConfiguration<object>): Promise<void>
```

## Description

To delete a container repository including all of its tags, send a DELETE request to [`/v2/registries/{registry_name}/repositories/{repository_name}`](https://docs.digitalocean.com/reference/api/reference/container-registries/index.html.md#registries_delete_repository).

A successful request will receive a 204 status code with no body in response. This indicates that the request was processed successfully.

## Parameters

`registry_name` string required

Example: `example`

The name of a container registry.

`repository_name` string required

Example: `repo-1`

The name of a container registry repository. If the name contains `/` characters, they must be URL-encoded, e.g. `%2F`.

## Request Sample

## Show Request Sample

```typescript
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
    createDigitalOceanClient,
    DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";

const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);

await client.v2.registries
    .byRegistry_name("example").repositories
    .byRepository_name("repo-1").delete();
```

## More Information

See [`/v2/registries/{registry_name}/repositories/{repository_name}`](https://docs.digitalocean.com/reference/api/reference/container-registries/index.html.md#registries_delete_repository) in the API reference for additional detail on responses, headers, parameters, and more.