protected function deleteObject($url) { $headers = $this->getBaseHeaders(); try { $response = $this->root->getHttpClient()->delete($url, $headers); return true; } catch (ClientException $e) { $this->addError($e->getRequest(), $e->getResponse()); return false; } }