Delete repositories

Remove specific repositories from the private image registry.

Base path: https://<Cluster Master Host>:<Cluster Master API Port>/image-manager/api/v1/repositories/<repo>

After you remove the repository, you can remove the related files from the registry storage. See Removing image files from the private registry storage.

API version
3.2.0
API URI components
Scheme
HTTPS
Host name
Cluster Master Host
Port number
Cluster Master API Port
Base path
/image-manager/api/v1/repositories/{namespace}/{repo}
Command
DELETE
Command output format
application/json

The sample curl command resembles the following code:

curl -X DELETE -H "Authorization:Bearer $ID_TOKEN" https://<Cluster Master Host>:<Cluster Master API Port>/image-manager/api/v1/repositories/<repo> --insecure

The command does not return any messages.

root@master:~# curl -X DELETE -H "Authorization: Bearer $ID_TOKEN" https://mycluster.icp:8443/image-manager/api/v1/repositories/default/alpine --insecure

Parameters

Table 1. The parameters that you use to delete repositories
Type Name Description Schema Default Required
Path namespace Namespace where the repository is string Yes
Path repo:.* Name of repository string Yes

Responses

Table 2. The responses that are returned when you delete repositories
HTTP Code Description Schema
200 OK No content