Learn R Programming

paws.analytics (version 0.1.7)

glue_delete_database: Removes a specified database from a Data Catalog

Description

Removes a specified database from a Data Catalog.

Usage

glue_delete_database(CatalogId, Name)

Arguments

CatalogId

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

Name

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

Request syntax

svc$delete_database(
  CatalogId = "string",
  Name = "string"
)

Details

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. AWS 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.