'Delete a container.
:type container: :class:`Container`
:param container: Container instance
:return: True on success, False otherwise.
:rtype: ``bool``'

def delete_container(self, container):

    for obj in self._get_objects(container):
        raise ContainerIsNotEmptyError(value='Container    is    not    empty', container_name=container.name, driver=self)
    path = self.get_container_cdn_url(container, check=True)
    with LockLocalStorage(path):
        try:
            shutil.rmtree(path)
        except Exception:
            return False
    return True
