DELETE /v1/containers/{id}
Delete a Container
Delete a container by ID or name, with soft/hard delete options
DELETE
DELETE /v1/containers/{id}
Documentation Index
Fetch the complete documentation index at: https://openmetadata-codex-audit-docs-codebase-alignment.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Delete a Container
Delete a container by ID or fully qualified name. Supports soft delete (default), hard delete, and restore operations.Delete by ID
UUID of the container to delete.
Recursively delete child containers.
Permanently delete the container. If
false, the container is soft-deleted and can be restored.Delete by Name
UseDELETE /v1/containers/name/{fqn} to delete by fully qualified name.
Fully qualified name of the container (e.g.,
s3_datalake.analytics-bucket).Recursively delete child containers.
Permanently delete the container.
Restore a Soft-Deleted Container
UsePUT /v1/containers/restore to restore a soft-deleted container.
UUID of the soft-deleted container to restore.
DELETE /v1/containers/{id}
Returns
Soft delete returns the container object withdeleted: true. Hard delete returns no content (204). Restore returns the restored container object.
Error Handling
| Code | Error Type | Description |
|---|---|---|
401 | UNAUTHORIZED | Invalid or missing authentication token |
403 | FORBIDDEN | User lacks permission to delete this container |
404 | NOT_FOUND | Container with given ID or FQN does not exist |