Skip to navigation

Empty registry

Permanently deletes every repository and image in a registry, so it can be deleted. A bounded run can stop early with 409 detail.code: registry_empty_incomplete (retryable: true); pause pushes and call again. Requires scope: container-registry.write.

# Example request with curl (set IBEE_API_TOKEN to a platform API token and WORKSPACE_ID to the workspace first).
# REGISTRY_ID: Registry ID
curl -X POST "https://api.ibee.ai/v1/container-registry/registries/$REGISTRY_ID/empty?workspace_id=$WORKSPACE_ID&confirm_registry_name=<confirm_registry_name>" \
-H "Authorization: Bearer $IBEE_API_TOKEN"

Authentication

AuthorizationBearer

IBEE platform API token. Production tokens start with ibee_prod_key_; development tokens start with ibee_dev_key_. Use a token only with its matching gateway environment.

Path parameters

registry_idstringRequiredformat: "uuid"
Registry ID.

Query parameters

workspace_idstringRequiredformat: "^[1-9][0-9]*$">=1 character

The positive numeric workspace ID to scope this request to. Zero, negative, and non-numeric values are rejected.

confirm_registry_namestringRequired3-48 characters
The registry's name, repeated to confirm a destructive call.

Response

Registry emptied.
registry_idstringformat: "uuid"
ID of the registry.
registry_namestring
Name of the registry.
deleted_repository_countinteger
Number of repositories that were deleted.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
422
Unprocessable Entity Error
503
Service Unavailable Error