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

id
string
required
UUID of the database to delete.
recursive
boolean
default:"false"
Recursively delete child schemas and tables.
hardDelete
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.
fqn
string
required
Fully qualified name of the database (e.g., snowflake_prod.analytics).
recursive
boolean
default:"false"
Recursively delete child schemas and tables.
hardDelete
boolean
default:"false"
Permanently delete the database.

Restore a Soft-Deleted Database

Use PUT /v1/databases/restore to restore a soft-deleted database.
id
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