Function esthri::delete

source ·
pub async fn delete(
    s3: &Client,
    bucket: impl AsRef<str>,
    keys: &[impl AsRef<str>]
) -> Result<()>
Expand description

Delete a remote object given a bucket and a key.

Arguments

  • s3 - The S3 client object, see [crate::rusoto::S3]
  • bucket - The bucket to delete from
  • keys - The keys within the bucket to delete

Errors

Will transparently pass failures from [crate::rusoto::S3::delete_object] via crate::errors::Error.