Answer the given query: What is the purpose of the deletePauseOption method?
 with top five relevant code snippets:public JSONObject deletePauseOption(HttpServletRequest request, HttpServletResponse response, JSONObject jsonObject) {
        PauseOptionCache pauseOptionCache = StaticContextAccessor.getBean(PauseOptionCache.class);
        JSONObject responseJsonObject = new JSONObject();
        try {
            int pauseOptionId = TicketConfigurationUtility.getIntegerFromJSONObject(jsonObject, "id", 0);
            String message = " ERROR-MESSAGE";
            responseJsonObject = new JSONObject();
            PauseOption pauseOption = pauseOptionCache.getById(pauseOptionId);
            if (pauseOption != null) {
                if (pauseOptionDao.deletePauseOption(pauseOption.getId(), pauseOption.getCmId()))
                    kafkaPauseOptionListner.send(deletePauseOptionTopic, pauseOption);
                monolithicSyncUtil.sendObjectToMonolith(pauseOption, "delete");
                responseJsonObject.put("status", "success");
                message = "PauseOption succesfully Deleted";

            } else {
                responseJsonObject.put("status", "error");
                message = "Invalid pauseoptionId";
            }
            responseJsonObject.put("response", message);
        } catch (Exception e) {
            responseJsonObject.put("status", "error");
            LOGGER.error("Error in deletePauseOption() method !! ", e);
        }
        return responseJsonObject;
    }
@PostMapping("delete-pause-option")
    public ResponseEntity<JSONObject> deletePauseOption(@RequestBody JSONObject jsonObject) {
        JSONObject responseJsonObject = null;
        try {
            responseJsonObject = pauseOptionService.deletePauseOption(request, response, jsonObject);
        } catch (Exception e) {
            LOGGER.error("Error in addOrUpdatePauseOption() method!! ", e);
        }
        return new ResponseEntity<JSONObject>(responseJsonObject, HttpStatus.OK);

    }
public JSONObject deleteEmailCredential(HttpServletRequest request, HttpServletResponse response, JSONObject jsonObject) {
        JSONObject responseObject = TicketConfigurationUtility.getResponseJSONObject();
        try {
            PartnerUser partnerUser = SessionManager.getPartnerUser(request);
            int cmId = partnerUser.getCmId();
            int emailCredentialId = TicketConfigurationUtility.getIntegerFromJSONObject(jsonObject, "id", 0);
            EmailCredential emailCredential = emailCredentialCache.chechkEmailCredentialInCache(cmId, emailCredentialId);
            if (emailCredential != null) {
                if (emailCredentialDao.removeEmailCredential(emailCredential.getId(), emailCredential.getCmId())) {
                    kafkaEmailCredentialListener.send(deleteEmailCredentialTopic, emailCredential);
                    monolithicSyncUtil.sendObjectToMonolith(emailCredential, "delete");
                    responseObject.put("status", "success");
                    responseObject.put("reason", "Email Credential Delete Successfully");
                }
            } else {
                responseObject.put("reason", "Invalid credential Id");
            }
        } catch (Exception e) {
            LOGGER.error("Error in deleteEmailCredential() method !!", e);
        }
        return responseObject;
    }
public JsonNode deleteEmailCredentialConfigForId(String configId, HttpServletRequest request) {
        ObjectNode responseNode = objectMapper.createObjectNode();
        responseNode.put("status", "failure");
        int id = NumberUtils.toInt(configId);
        if (id <= 0) {
            responseNode.put("reason", "config id is not a real number");
            return responseNode;
        }
        int cmId = SessionManager.getPartner(request).getCmId();
        EmailCredential emailCredential = emailCredentialCache.chechkEmailCredentialInCache(cmId, id);
        if (emailCredential != null && emailCredential.getCmId() == cmId) {
            if (emailCredentialDao.removeEmailCredential(emailCredential.getId(), emailCredential.getCmId())) {
                kafkaEmailCredentialListener.send(deleteEmailCredentialTopic, emailCredential);
                monolithicSyncUtil.sendObjectToMonolith(emailCredential, "DELETE");
                responseNode.put("status", "success");
                responseNode.put("reason", "email credential with id " + id + " deleted successfully");
            }
        } else {
            responseNode.put("reason", "invalid email credential");
        }
        return responseNode;
    }
public JsonNode deletePlayStoreConfigForId(String configId, HttpServletRequest request) {
        ObjectNode responseNode = objectMapper.createObjectNode();
        responseNode.put("status", "failure");
        int id = NumberUtils.toInt(configId);
        if (id <= 0) {
            responseNode.put("reason", "config id is not a real number");
            return responseNode;
        }
        int cmId = SessionManager.getPartner(request).getCmId();
        PlayStoreConfig config = playStoreConfigCache.getIdToObjMap(id);
        if (config != null && cmId == config.getCmId()) {
            if (playStoreConfigDao.removePlayStoreConfig(config.getId(), config.getCmId())) {
                kafkaPlayStoreConfigListener.send(deletePlayStoreConfigTopic, config);
                monolithicSyncUtil.sendObjectToMonolith(config, "DELETE");
                responseNode.put("status", "success");
                responseNode.put("reason", "playstore config with id " + id + " deleted successfully");
            }
        } else {
            responseNode.put("reason", "invalid playstore config");
        }
        return responseNode;
    }