@Override
    public void stop() {
        LOGGER.info("Stopping dolphin scheduler engine...");
        String processDefUrl = projectBaseUrl + "/" + projectCode + DS_PROCESS_URL;
        try {

            String queryProcessDefUrl = projectBaseUrl + "/" + projectCode + DS_PROCESS_URL + DS_PROCESS_QUERY_URL;
            Map<Long, String> allProcessDef = dolphinScheduleOperator.queryAllProcessDef(queryProcessDefUrl, token);

            for (Long processDefCode : allProcessDef.keySet()) {

                LOGGER.info("delete process definition id: {}", processDefCode);
                dolphinScheduleOperator.releaseProcessDef(processDefUrl, processDefCode, token, DS_OFFLINE_STATE);
                dolphinScheduleOperator.deleteProcessDef(processDefUrl, token, processDefCode);
                scheduledProcessMap.remove(processDefCode);
            }

            dolphinScheduleOperator.deleteProject(projectBaseUrl, token, projectCode);
            LOGGER.info("Dolphin scheduler engine stopped");

        } catch (Exception e) {
            LOGGER.error("Failed to stop dolphin scheduler: ", e);
            throw new DolphinScheduleException(String.format("Failed to stop dolphin scheduler: %s", e.getMessage()));
        }
    }
stop and delete all process definition in DolphinScheduler
remove all process stored in scheduledProcessMap
delete project for inlong-group-id in DolphinScheduler
inlong-manager/manager-schedule/src/main/java/org/apache/inlong/manager/schedule/dolphinscheduler/DolphinScheduleEngine.java