Delete registry API Reference
DELETE
/tenants/{tenant}/registries/{name}
const url = 'https://api.kupe.cloud/api/v1/tenants/acme/registries/registry';const options = {method: 'DELETE', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.kupe.cloud/api/v1/tenants/acme/registries/registry \ --header 'Authorization: <Authorization>'Delete the tenant’s registry. Deleting a registry deletes every image in it. They cannot be restored.
Its cluster connections and access tokens go with it. Refused with 409 (code deletion_protected)
while deletionProtection is true: PATCH it to false first.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” tenant
required
string
Tenant name
name
required
string
Registry name: always registry
Responses
Section titled “ Responses ”Registry deletion initiated
Invalid name
object
code
string
error
string
field
string
message
string
severity
string
Missing or invalid authentication
object
code
string
error
string
field
string
message
string
severity
string
Admin access required
object
code
string
error
string
field
string
message
string
severity
string
Registry not found
object
code
string
error
string
field
string
message
string
severity
string
Deletion protection is enabled (code deletion_protected), or the registry kept changing while it was being deleted
object
code
string
error
string
field
string
message
string
severity
string
Rate limit exceeded
object
code
string
error
string
field
string
message
string
severity
string