def METHOD_NAME(request):
    try:
        result = pluginManager.preSubmitEmailDeletion(request)
        if result != 200:
            return result
        msM = MailServerManager(request)
        coreResult = msM.METHOD_NAME()
        result = pluginManager.postSubmitEmailDeletion(request, coreResult)
        if result != 200:
            return result
        return coreResult
    except KeyError as msg:
        data_ret = {'deleteEmailStatus': 0, 'error_message': str(msg)}
        json_data = json.dumps(data_ret)
        return HttpResponse(json_data)