public function deleteContainer($container)
    {
        if (is_object($container) && $container instanceof Container) {
            $name = $container->getName();
        } else {
            $name = strval($container);
        }

        $this->validateContainerName($name);

        try {
            $this->makeRequest(Client::DELETE, array($name));
        } catch (Exceptions\ResponseError $e) {
            switch ($e->getCode()) {
                case 409:
                    throw new Exceptions\ContainerNotEmpty($name);
                    break;
                case 404:
                    throw new Exceptions\NoSuchContainer();
                    break;
                default:
                    throw $e;
                    break;
            }
        }

        if ($this->getCdnEnabled()) {
            $this->makeCdnRequest(
                Client::POST,
                array($name),
                array(
                    'X-CDN-Enabled' => 'False',
                )
            );
        }
    }