@Override
    public boolean accept(WorkflowContext context) {
        ProcessForm processForm = context.getProcessForm();
        String groupId = processForm.getInlongGroupId();
        if (!(processForm instanceof GroupResourceProcessForm)) {
            log.info("not add delete group listener, not GroupResourceProcessForm for groupId={}", groupId);
            return false;
        }

        GroupResourceProcessForm groupProcessForm = (GroupResourceProcessForm) processForm;
        if (groupProcessForm.getGroupOperateType() != GroupOperateType.DELETE) {
            log.info("not add delete group listener, as the operate was not DELETE for groupId={}", groupId);
            return false;
        }

        log.info("add delete group listener for groupId={}", groupId);
        return true;
    }
Listener of delete Sort task or config.
inlong-manager/manager-plugins/base/src/main/java/org/apache/inlong/manager/plugin/listener/DeleteSortListener.java