Skip to main content

delete_single_object

Function delete_single_object 

Source
pub async fn delete_single_object(
    client: &Client,
    bucket: &str,
    key: &str,
) -> Result<(), AppError>
Expand description

Delete a single object from bucket at key.

Used internally by move_object after a successful copy. Exposed pub so task-35 (delete batch) can call it for single-item fallback paths.

ยงErrors

  • AppError::AccessDenied โ€” s3:DeleteObject permission denied.
  • AppError::NotFound โ€” bucket does not exist.
  • AppError::Network โ€” any other SDK or transport error.

Note: S3 DeleteObject on a non-existent key is idempotent and returns 204; this function therefore returns Ok(()) in that case.