Beispiel #1
0
 /**
  * Deletes a container
  *
  * @param  string                 $containerName
  * @param  DeleteContainerOptions $options
  * @throws \RuntimeException      if cannot delete the container
  */
 public function deleteContainer($containerName, DeleteContainerOptions $options = null)
 {
     $this->init();
     try {
         $this->blobProxy->deleteContainer($containerName, $options);
     } catch (ServiceException $e) {
         $errorCode = $this->getErrorCodeFromServiceException($e);
         if ($errorCode != self::ERROR_CONTAINER_NOT_FOUND) {
             throw new \RuntimeException(sprintf('Failed to delete the configured container "%s": %s (%s).', $containerName, $e->getErrorText(), $errorCode), $e->getCode());
         }
     }
 }