def METHOD_NAME(self, identifier=None, rtype=None, name=None, content=None):
    if identifier is None:
        records = self.list_records(rtype, name, content)
        delete_record_ids = [record["id"] for record in records]
    else:
        delete_record_ids = [identifier]
    LOGGER.debug(f"deleting records: {delete_record_ids}")
    for record_id in delete_record_ids:
        self._post(f"/dns/delete/{self.domain}/{record_id}")
    LOGGER.debug("delete_record: success")
    return True