Fix: delete_dns_record() and delete_apgroup() threw a TypeError after a successful delete. The controller's
v2 API answers a successful DELETE with an empty response body, which the client could not return as the declared
bool. The record was deleted on the controller, but the call ended with a TypeError, which is not caught by
catch (UnifiApiException $e). Both methods now return true on success. Errors, such as deleting a record that
does not exist, still throw ControllerErrorException.
The same fix applies to custom_api_request() with $return = 'boolean' on a /v2/api/ path.
Full changelog: v2.4.1...v2.4.2