(email, key, zoneid, logger, recid)
Delete the specified DNS entry
Delete the specified DNS entry
Delete the specified DNS entry
def del_rec(email, key, zoneid, logger, recid):
    ''' Delete the specified DNS entry '''
    headers = {
        'X-Auth-Email' : email,
        'X-Auth-Key' : key,
        'Content-Type' : 'application/json'
    }
    url = "%s/zones/%s/dns_records/%s" % (baseurl, str(zoneid), str(recid))
    try:
        req = requests.delete(url=url, headers=headers)
        return validate_response(req, logger)
    except:
        return False
def del_rec ( email , key , zoneid , logger , recid ) : headers = { 'X-Auth-Email' : email , 'X-Auth-Key' : key , 'Content-Type' : 'application/json' } url = "%s/zones/%s/dns_records/%s" % ( baseurl , str ( zoneid ) , str ( recid ) ) try : req = requests . delete ( url = url , headers = headers ) return validate_response ( req , logger ) except : return False