@Deprecated
  default void dropDatabase(String catName, String dbName, boolean deleteData, boolean ignoreUnknownDb, boolean cascade)
      throws NoSuchObjectException, InvalidOperationException, MetaException, TException {
    DropDatabaseRequest req = new DropDatabaseRequest();
    req.setName(dbName);
    req.setCatalogName(catName);
    req.setIgnoreUnknownDb(ignoreUnknownDb);
    req.setDeleteData(deleteData);
    req.setCascade(cascade);

    dropDatabase(req);
  }
Drop a database.
@param catName Catalog name.  This can be null, in which case
               {@link Warehouse#DEFAULT_CATALOG_NAME} will be assumed.
@param dbName database name.
@param deleteData whether to drop the underlying HDFS directory.
@param ignoreUnknownDb whether to ignore an attempt to drop a non-existant database
@param cascade whether to drop contained tables, etc.  If this is false and there are
               objects still in the database the drop will fail.
@throws NoSuchObjectException No database of this name exists in the specified catalog and
ignoreUnknownDb is false.
@throws InvalidOperationException The database contains objects and cascade is false.
@throws MetaException something went wrong, usually either in the RDBMS or storage.
@throws TException general thrift error.
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java