@Override
  public void dropTable(
      String dbname, String name, boolean deleteData, boolean ignoreUnknownTab, boolean ifPurge)
      throws TException, UnsupportedOperationException {
    // build new environmentContext with ifPurge;
    EnvironmentContext envContext = null;
    if (ifPurge) {
      Map<String, String> warehouseOptions = null;
      warehouseOptions = new HashMap<String, String>();
      warehouseOptions.put("ifPurge", "TRUE");
      envContext = new EnvironmentContext(warehouseOptions);
    }
    dropTable(dbname, name, deleteData, ignoreUnknownTab, envContext);
  }
Drop the table and choose whether to save the data in the trash.

@param ifPurge completely purge the table (skipping trash) while removing data from warehouse
@see #dropTable(String, String, boolean, boolean, EnvironmentContext)
amoro-format-mixed/amoro-mixed-trino/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java