public void deleteCheckResourceGroup(Context ctx) {
    String name = ctx.pathParam("resourceGroupName");
    ctx.json(OkResponse.of(optimizerManager.canDeleteResourceGroup(name)));
  }
check if optimizerGroup can be deleted url = /optimize/resourceGroups/delete/check
amoro-ams/src/main/java/org/apache/amoro/server/dashboard/controller/OptimizerGroupController.java