

def delete_all_objects(self, async=False):
    "\n        Deletes all objects from this container.\n\n        By default the call will block until all objects have been deleted. By\n        passing True for the 'async' parameter, this method will not block, and\n        instead return an object that can be used to follow the progress of the\n        deletion. When deletion is complete the bulk deletion object's\n        'results' attribute will be populated with the information returned\n        from the API call. In synchronous mode this is the value that is\n        returned when the call completes. It is a dictionary with the following\n        keys:\n\n            deleted - the number of objects deleted\n            not_found - the number of objects not found\n            status - the HTTP return status code. '200 OK' indicates success\n            errors - a list of any errors returned by the bulk delete call\n        "
    nms = self.list_object_names(full_listing=True)
    return self.object_manager.delete_all_objects(nms, async=async)

dataset/ETHPy150Open rackspace/pyrax/pyrax/object_storage.py Container.delete_all_objects/original