public void catalogDeleteCheck(Context ctx) {
    String catalogName = ctx.pathParam("catalogName");
    Preconditions.checkArgument(
        StringUtils.isNotEmpty(ctx.pathParam("catalogName")), "Catalog name is empty!");
    ServerCatalog serverCatalog = catalogService.getServerCatalog(catalogName);
    if (serverCatalog instanceof InternalCatalog) {
      ctx.json(OkResponse.of(serverCatalog.listTables().isEmpty()));
    } else {
      ctx.json(OkResponse.of(true));
    }
  }
Check whether we could delete the catalog
amoro-ams/src/main/java/org/apache/amoro/server/dashboard/controller/CatalogController.java