def METHOD_NAME(request):
    response = {}
    status = 405
    id = int(request.POST["id"])
    doc_template = DocumentTemplate.objects.filter(
        pk=id, user=request.user
    ).first()
    if doc_template:
        status = 200
        if doc_template.is_deletable():
            doc_template.METHOD_NAME()
            response["done"] = True
        else:
            response["done"] = False
    return JsonResponse(response, status=status)