public function deleteDistribution($distributionId, $eTag)
{
$result = false;
$options = array('If-Match' => (string) $eTag);
$response = $this->client->call('DELETE', $options, sprintf('/distribution/%s', self::escape($distributionId)));
if ($response->getError() === false) {
$sxml = simplexml_load_string($response->getRawContent());
$entity = $this->cloudFront->distribution->get((string) $distributionId);
if ($entity !== null) {
$this->getEntityManager()->detach($entity);
}
$result = true;
}
return $result;
}