Skip to content
Hayonix

API reference · Registry credentials

Delete registry credentials

DELETE/v1/registry-credentials/{registry_credential_id}
API keyregistry_credential:deleteProject
TypeScript
client.registryCredentials.delete()
Python
client.registry_credentials.delete()
CLI
hayonix registry-credentials delete

Deletes the credentials and their password. Running containers are not affected, but a workload that still references them cannot start a new container until the reference is changed.

Project API key (Authorization: Bearer sk_…), or a console session. Requires the registry_credential:delete permission (a key's scope, or a role that includes it).

Examples

The samples read API_KEY and API_BASE_URL from the environment (see Setup). Values are examples.

curl -sS -X DELETE "$API_BASE_URL/registry-credentials/rcr_01jc5zq4m8k3v6x9t2w7r0b1e4" \
  -H "Authorization: Bearer $API_KEY"

Request

Headers
HeaderRequiredDescription
AuthorizationyesBearer and your API key. The key implies its project.
X-Project-Idsession onlyThe project to act in, for console sessions. Requests with an API key leave it out.

Path parameters

  • registry_credential_idstringrequired

    ID of the registry credential

    ID with prefix rcr_

Response

200 JSON — The credentials were deleted

  • idstringrequired

    ID of the deleted resource

  • objectstringrequired

    Always `registry_credential`

    One ofregistry_credential

  • deletedbooleanrequired

    Always true: the resource is deleted

    One oftrue

Example response
Example response
{
  "id": "string",
  "object": "registry_credential",
  "deleted": true
}

Errors

Errors use the standard envelope. What this operation can answer:

Errors
StatusTypeWhen
400invalid_request_errorA parameter or body field is missing or not allowed; param names it.
401authentication_errorThe key or session is missing, revoked or expired.
403permission_errorThe credential lacks the permission this needs, or the organization is suspended.
404not_found_errorNo such resource in this project (an ID from another project is answered the same way).
409conflict_errorThe resource's current state does not allow this.
429rate_limit_error rate_limitedToo many requests; retry after retry-after seconds.