Skip to main content
DELETE
DELETE /v1/databases/{id}

Delete a Database

Delete a database by ID or fully qualified name. Supports soft delete (default), hard delete, and restore operations.

Delete by ID

string
required
UUID of the database to delete.
boolean
default:"false"
Recursively delete child schemas and tables.
boolean
default:"false"
Permanently delete the database. If false, the database is soft-deleted and can be restored.

Delete by Name

Use DELETE /v1/databases/name/{fqn} to delete by fully qualified name.
string
required
Fully qualified name of the database (e.g., snowflake_prod.analytics).
boolean
default:"false"
Recursively delete child schemas and tables.
boolean
default:"false"
Permanently delete the database.

Restore a Soft-Deleted Database

Use PUT /v1/databases/restore to restore a soft-deleted database.
string
required
UUID of the soft-deleted database to restore.
DELETE /v1/databases/{id}

Returns

Soft delete returns the database object with deleted: true. Hard delete returns no content (204). Restore returns the restored database object.

Error Handling