<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def del_record(cls, fqdn, name, type):
 """Delete record for a domain."""

        meta = cls.get_fqdn_info(fqdn)
        url = meta['domain_records_href']
        delete_url = url
        if name:
            delete_url = '%s/%s' % (delete_url, name)
        if type:
            delete_url = '%s/%s' % (delete_url, type)
        return cls.json_delete(delete_url)