if! _rest POST "domain/dns/""act=dnsrec.remove&username=$WEST_Username&apikey=$WEST_Key&domain=$fulldomain&hostname=$fulldomain&record_id=$record_id";then
_err "Record.Remove error."
return 1
fi
_contains "$response""success"
}
#add the txt record.
#usage: add fulldomain txtvalue
add_record(){
fulldomain=$1
txtvalue=$2
_info "Adding record"
if! _rest POST "domain/dns/""act=dnsrec.add&username=$WEST_Username&apikey=$WEST_Key&domain=$fulldomain&hostname=$fulldomain&record_type=TXT&value=$txtvalue";then