async fn delete(&self, location: &str) -> InternalResult<()> {
        let location_copy = location.to_string();
        let bucket_name = self.bucket_name.clone();

        tokio::task::spawn_blocking(move || {
            cloud_storage::Object::delete(&bucket_name, &location_copy)
        })
        .await
        .context(UnableToDeleteDataFromGcs {
            bucket: &self.bucket_name,
            location,
        })?
        .context(UnableToDeleteDataFromGcs2 {
            bucket: &self.bucket_name,
            location,
        })?;

        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 location_copy = location.to_string();
        let bucket_name = self.bucket_name.clone();
        tokio::task::spawn_blocking(move || {
            cloud_storage::Object::delete(&bucket_name, &location_copy)
        })
        .await
        .context(UnableToDeleteDataFromGcs {
            bucket: &self.bucket_name,
            location,
        })?
        .context(UnableToDeleteDataFromGcs2 {
            bucket: &self.bucket_name,
            location,
        })?;
        Ok(())
    }
async fn delete ( & self , location : & str ) -> InternalResult < ( ) > { let location_copy = location . to_string ( ) ; let bucket_name = self . bucket_name . clone ( ) ; tokio :: task :: spawn_blocking ( move | | { cloud_storage :: Object :: delete ( & bucket_name , & location_copy ) } ) . await . context ( UnableToDeleteDataFromGcs { bucket : & self . bucket_name , location , } ) ? . context ( UnableToDeleteDataFromGcs2 { bucket : & self . bucket_name , location , } ) ? ; Ok ( ( ) ) }
Delete the object at the specified location.
Delete the object at the specified location .
&self
location
&str