async fn delete(&self, location: &str) -> InternalResult<()> {
        let delete_request = rusoto_s3::DeleteObjectRequest {
            bucket: self.bucket_name.clone(),
            key: location.to_string(),
            ..Default::default()
        };

        self.client
            .delete_object(delete_request)
            .await
            .context(UnableToDeleteDataFromS3 {
                bucket: self.bucket_name.to_owned(),
                location: location.to_owned(),
            })?;
        Ok(())
    }
/// Delete the object at the specified location.
Delete the object at the specified location.
Delete the object at the specified location .
async fn delete(&self, location: &str) -> InternalResult<()> {
        let delete_request = rusoto_s3::DeleteObjectRequest {
            bucket: self.bucket_name.clone(),
            key: location.to_string(),
            ..Default::default()
        };
        self.client
            .delete_object(delete_request)
            .await
            .context(UnableToDeleteDataFromS3 {
                bucket: self.bucket_name.to_owned(),
                location: location.to_owned(),
            })?;
        Ok(())
    }
async fn delete ( & self , location : & str ) -> InternalResult < ( ) > { let delete_request = rusoto_s3 :: DeleteObjectRequest { bucket : self . bucket_name . clone ( ) , key : location . to_string ( ) , .. Default :: default ( ) } ; self . client . delete_object ( delete_request ) . await . context ( UnableToDeleteDataFromS3 { bucket : self . bucket_name . to_owned ( ) , location : location . to_owned ( ) , } ) ? ; Ok ( ( ) ) }
Delete the object at the specified location.
Delete the object at the specified location .
&self
location
&str