public void deleteTable(Context ctx) {
    handleTable(
        ctx,
        handler -> {
          boolean purge =
              Boolean.parseBoolean(
                  Optional.ofNullable(ctx.req.getParameter("purgeRequested")).orElse("false"));
          org.apache.amoro.server.table.TableMetadata tableMetadata = handler.tableMetadata();
          tableManager.dropTableMetadata(
              tableMetadata.getTableIdentifier().getIdentifier().buildTableIdentifier(), purge);
          handler.dropTable(purge);
          return null;
        });
  }
DELETE PREFIX/v1/catalogs/{catalog}/namespaces/{namespace}/tables/{table}
amoro-ams/src/main/java/org/apache/amoro/server/RestCatalogService.java