def METHOD_NAME(self, jamf_url, obj_id, enc_creds="", token=""):
    """Delete policy"""
    self.output("Deleting Policy...")
    object_type = "policy"
    url = "{}/{}/id/{}".format(jamf_url, self.api_endpoints(object_type), obj_id)
    count = 0
    while True:
        count += 1
        self.output("Policy delete attempt {}".format(count), verbose_level=2)
        request = "DELETE"
        r = self.curl(request=request, url=url, enc_creds=enc_creds, token=token)
        # check HTTP response
        if self.status_check(r, "Policy", obj_id, request) == "break":
            break
        if count > 5:
            self.output("WARNING: Policy deletion did not succeed after 5 attempts")
            self.output("\nHTTP POST Response Code: {}".format(r.status_code))
            raise ProcessorError("ERROR: Policy deletion failed ")
        sleep(30)
    return r