setId($this->formData['id']); $result = $this->api->domain->delete($domain); if(!$result) { $this->setError($this->api->domain->getLastResult()->getLastErrorCode()); return false; } return true; } }