@Override
  @Deprecated
  public void drop_table(final String dbname, final String name, final boolean deleteData)
      throws NoSuchObjectException, MetaException {
    startFunction("drop_table", ": " + dbname + ":" + name);
    boolean success = false;
    Exception ex = null;
    try {
    String[] parsedDbName = parseDbName(dbname, conf);
    DropTableRequest dropTableReq = new DropTableRequest(parsedDbName[DB_NAME], name);
    dropTableReq.setDeleteData(deleteData);
    dropTableReq.setCatalogName(parsedDbName[CAT_NAME]);
    dropTableReq.setDropPartitions(true);
    drop_table_req(dropTableReq);
    } catch (Exception e) {
      ex = e;
      throw handleException(e).throwIfInstance(MetaException.class, NoSuchObjectException.class)
              .convertIfInstance(IOException.class, MetaException.class).defaultMetaException();
    } finally {
      endFunction("drop_table", success, ex, name);
    }
  }
Deletes the partitions specified by catName, dbName, tableName. If checkLocation is true, for
locations of partitions which may not be subdirectories of tablePath checks to make sure the
locations are writable.

Drops the metadata for each partition.

Provides a list of locations of partitions which may not be subdirectories of tablePath.

@param ms RawStore to use for metadata retrieval and delete
@param catName The catName
@param dbName The dbName
@param tableName The tableName
@param tablePath The tablePath of which subdirectories does not have to be checked
@param checkLocation Should we check the locations at all
@return The list of the Path objects to delete (only in case checkLocation is true)
@throws MetaException
@throws IOException
@throws NoSuchObjectException
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HMSHandler.java