

def bulk_delete(self, container, object_names, async=False):
    "\n        Deletes multiple objects from a container in a single call.\n\n        The bulk deletion call does not return until all of the specified\n        objects have been processed. For large numbers of objects, this can\n        take quite a while, so there is an 'async' parameter to give you the\n        option to have this call return immediately. If 'async' is True, an\n        object is returned with a 'completed' attribute that will be set to\n        True as soon as the bulk deletion is complete, and a 'results'\n        attribute that will contain a dictionary (described below) with the\n        results of the bulk deletion.\n\n        When deletion is complete the bulk deletion object's 'results'\n        attribute will be populated with the information returned from the API\n        call. In synchronous mode this is the value that is returned when the\n        call completes. It is a dictionary with the following 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\n        This isn't available in swiftclient yet, so it's using code patterned\n        after the client code in that library.\n        "
    deleter = BulkDeleter(self, container, object_names)
    deleter.start()
    if async:
        return deleter
    while (not deleter.completed):
        time.sleep(self.bulk_delete_interval)
    return deleter.results

dataset/ETHPy150Open rackspace/pyrax/pyrax/object_storage.py StorageClient.bulk_delete/original