v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-142021,119944.8 KB

Removes a specified database from a Data Catalog.

After completing this operation, you no longer have access to the tables (and all table versions and partitions that might belong to the tables) and the user-defined functions in the deleted database. Glue deletes these "orphaned" resources asynchronously in a timely manner, at the discretion of the service.

To ensure the immediate deletion of all related resources, before calling DeleteDatabase, use DeleteTableVersion or BatchDeleteTableVersion, DeletePartition or BatchDeletePartition, DeleteUserDefinedFunction, and DeleteTable or BatchDeleteTable, to delete any resources that belong to the database.

post/#X-Amz-Target=AWSGlue.DeleteDatabase

Headers

X-Amz-Target'AWSGlue.DeleteDatabase' required

Request body

CatalogIdstring

The ID of the Data Catalog in which the database resides. If none is provided, the Amazon Web Services account ID is used by default.

Namestring required

The name of the database to delete. For Hive compatibility, this must be all lowercase.

Response

Success

DeleteDatabaseResponse required