AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to DeleteDatabaseAsync.

Namespace: Amazon.Glue
Assembly: AWSSDK.Glue.dll
Version: 3.x.y.z

Syntax

C#
public virtual DeleteDatabaseResponse DeleteDatabase(
         DeleteDatabaseRequest request
)

Parameters

request
Type: Amazon.Glue.Model.DeleteDatabaseRequest

Container for the necessary parameters to execute the DeleteDatabase service method.

Return Value


The response from the DeleteDatabase service method, as returned by Glue.

Exceptions

ExceptionCondition
ConcurrentModificationException Two processes are trying to modify a resource simultaneously.
EntityNotFoundException A specified entity does not exist
InternalServiceException An internal service error occurred.
InvalidInputException The input provided was not valid.
OperationTimeoutException The operation timed out.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

See Also