'@inherits: :class:`StorageDriver.delete_container`'

def delete_container(self, container):

    for obj in container.iterate_objects():
        raise ContainerIsNotEmptyError(value='Container    must    be    empty    before    it    can    be    deleted.', container_name=container.name, driver=self)
    params = {'restype': 'container'}
    container_path = self._get_container_path(container)
    response = self.connection.request(container_path, params=params, method='DELETE')
    if (response.status == httplib.ACCEPTED):
        return True
    elif (response.status == httplib.NOT_FOUND):
        raise ContainerDoesNotExistError(value=None, driver=self, container_name=container.name)
    return False
