Gaufrette\Adapter\AzureBlobStorage::deleteContainer PHP Method

deleteContainer() public method

Deletes a container.
public deleteContainer ( string $containerName, MicrosoftAzure\Storage\Blob\Models\DeleteContainerOptions $options = null )
$containerName string
$options MicrosoftAzure\Storage\Blob\Models\DeleteContainerOptions
    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());
            }
        }
    }