/** * Deletes a given record from the backend, updates the soa serial number, and * creates a history entry for the record * * @param PowerDnsObjectInterface $obj * @param bool $force * @return mixed */ public function delete(PowerDnsObjectInterface $obj, $force = false) { /** * @type Records $obj */ $domain = $obj->getDomain(); if ($obj->getType() != 'SOA') { $this->createHistory($obj, 'DELETE'); } parent::delete($obj); if ($obj->getType() != 'SOA') { $this->updateSoa($domain); } return true; }