@Override
        void run() {
            // get the group and the corresponding context(snapshot)
            // TODO: handle and/or classify the exceptions
            try {
                InlongClient inlongClient = ClientUtils.getClient();
                InlongGroup group = inlongClient.getGroup(inlongGroupId);
                InlongGroupContext context = group.delete();
                if (!SimpleGroupStatus.STOPPED.equals(context.getStatus())) {
                    throw new Exception("Delete group failed, current status: " + context.getStatus());
                }
                System.out.println("Delete group success!");
            } catch (Exception e) {
                System.out.format("Delete group failed! message: %s \n", e.getMessage());
            }
        }
The delete command used for deleting inlong group instances.
Please refer to the document for parameters
inlong-manager/manager-client-tools/src/main/java/org/apache/inlong/manager/client/cli/DeleteCommand.java