Delete Repository

Once you have created a repository using the Docker URIs and performed all operations you can delete the repository completely. Since Docker Registry V2 API does not allow to delete the entire repository, you can use IONOS Container Registry's API call for deleting the repository.

To delete your repository, the registryId and repository name for the repository to be deleted must be provided.

You can get registryId through GET Registries API call.

Delete the repository using the following curl command:

Note: The sample requestID is a8fb592e4-494c-11ed-b878-0242ac120002 and the sample registry_name is test

Request

curl --location  \
--request DELETE 'https://api.ionos.com/registries/8fb592e4-494c-11ed-b878-0242ac120002/repositories/test' \
--header 'Authorization: Basic am9obkBleGFtcGxlLmNvbTphYmMxMjM=' \
--data-raw ''

Path parameters

FieldTypeDescriptionExample

registryId

string

The ID of the registry to return. This is required.

8fb592e4-494c-11ed-b878-0242ac120002

repository_name

string

The name of the registry. It must be unique within the folder.

test

Response

204 - No Content

The request was successfully fulfilled and there is no content in the body.

Last updated

Revision created

Minor update from the comments