@Override
    @VisibleForTesting
    public boolean handleUnregister(String groupId) {
        start();
        String processName = groupId + DS_DEFAULT_PROCESS_NAME;
        String processDefUrl = projectBaseUrl + "/" + projectCode + DS_PROCESS_URL;

        LOGGER.info("Dolphin Scheduler handle Unregister begin for {}, Checking process definition id uniqueness...",
                groupId);
        try {
            long processDefCode = dolphinScheduleOperator.checkAndGetUniqueId(processDefUrl, token, processName);
            if (processDefCode != 0 || scheduledProcessMap.containsKey(processDefCode)) {

                LOGGER.info("Deleting process definition, process definition id: {}", processDefCode);
                if (dolphinScheduleOperator.releaseProcessDef(processDefUrl, processDefCode, token, DS_OFFLINE_STATE)) {

                    dolphinScheduleOperator.deleteProcessDef(processDefUrl, token, processDefCode);
                    scheduledProcessMap.remove(processDefCode);
                    LOGGER.info("Process definition deleted");
                }
            }
            LOGGER.info("Un-registered dolphin schedule info for {}", groupId);
            return !scheduledProcessMap.containsKey(processDefCode);
        } catch (Exception e) {
            LOGGER.error("Failed to handle unregister dolphin scheduler: ", e);
            throw new DolphinScheduleException(
                    String.format("Failed to handle unregister dolphin scheduler: %s", e.getMessage()));
        }
    }
Handle schedule unregister.
@param groupId group to un-register schedule info
inlong-manager/manager-schedule/src/main/java/org/apache/inlong/manager/schedule/dolphinscheduler/DolphinScheduleEngine.java