ExAws.S3.delete_all_objects
You're seeing just the function
delete_all_objects
, go back to ExAws.S3 module for more information.
Specs
delete_all_objects( bucket :: binary(), objects :: [binary() | {binary(), binary()}, ...] | Enumerable.t(), opts :: [{:quiet, true}] ) :: ExAws.Operation.S3DeleteAllObjects.t()
Delete all listed objects.
When performed, this function will continue making delete_multiple_objects
requests deleting 1000 objects at a time until all are deleted.
Can be streamed.
Example
stream = ExAws.S3.list_objects(bucket(), prefix: "some/prefix") |> ExAws.stream!() |> Stream.map(& &1.key)
ExAws.S3.delete_all_objects(bucket(), stream) |> ExAws.request()