Skip to content

Commit

Permalink
Added method to delete all records of a domain (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
xpert6 committed Mar 24, 2020
1 parent e0a4bb9 commit 29104c2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions DNSMadeEasy/resource/Records.php
Expand Up @@ -111,6 +111,16 @@ public function delete($domainId, $recordId)
return $this->_driver->delete("/dns/managed/$domainId/records/$recordId");
}
}

/**
* Delete all records within a domain.
* @param integer $domainId The id of the domain.
* @return \DNSMadeEasy\Result
*/
public function deleteAll($domainId)
{
return $this->_driver->delete("/dns/managed/$domainId/records");
}

/**
* Update a record.
Expand Down

0 comments on commit 29104c2

Please sign in to comment.