DELETE /v1/databaseSchemas/{id}
Delete a Database Schema
Soft delete or permanently remove a database schema entity by UUID or fully qualified name, controlling cascade behavior and maintaining audit trails via the Collate REST API.
DELETE
DELETE /v1/databaseSchemas/{id}
Delete a Database Schema
Delete a database schema by ID or fully qualified name. Supports soft delete (default), hard delete, and restore operations.Delete by ID
UUID of the database schema to delete.
Recursively delete child tables.
Permanently delete the schema. If
false, the schema is soft-deleted and can be restored.Delete by Name
UseDELETE /v1/databaseSchemas/name/{fqn} to delete by fully qualified name.
Fully qualified name of the schema (e.g.,
snowflake_prod.analytics.public).Recursively delete child tables.
Permanently delete the schema.
Restore a Soft-Deleted Schema
UsePUT /v1/databaseSchemas/restore to restore a soft-deleted schema.
UUID of the soft-deleted schema to restore.
DELETE /v1/databaseSchemas/{id}
Returns
Soft delete returns the schema object withdeleted: true. Hard delete returns no content (204). Restore returns the restored schema object.
Error Handling
| Code | Error Type | Description |
|---|---|---|
401 | UNAUTHORIZED | Invalid or missing authentication token |
403 | FORBIDDEN | User lacks permission to delete this schema |
404 | NOT_FOUND | Schema with given ID or FQN does not exist |