Module Object.Delete

type options = {
  1. preconditions : Preconditions.Delete.t;
    (*

    Conditional delete headers.

    *)
  2. version_id : Version_id.t option;
    (*

    Object version to delete instead of the current version.

    *)
  3. expected_bucket_owner : Account_id.t option;
    (*

    x-amz-expected-bucket-owner.

    *)
}

DeleteObject request options.

type result = {
  1. delete_marker : bool option;
    (*

    Whether S3 created or addressed a delete marker.

    *)
  2. version_id : Version_id.t option;
    (*

    Version id affected by the delete operation.

    *)
  3. response : Awskit.Response.t;
    (*

    Raw response metadata.

    *)
}

DeleteObject result metadata.

val default_options : options
val options : ?preconditions:Preconditions.Delete.t -> ?version_id:Version_id.t -> ?expected_bucket_owner:Account_id.t -> unit -> (options, Awskit.Error.t) Stdlib.result

Build DeleteObject options.

val options_exn : ?preconditions:Preconditions.Delete.t -> ?version_id:Version_id.t -> ?expected_bucket_owner:Account_id.t -> unit -> options

Like options, but raises on validation failure.