DeleteObject
Source:
src/AWS/S3/DeleteObject.ts
Runtime binding for s3:DeleteObject.
Bind this operation to a bucket to get a callable that deletes objects —
the bucket name is injected automatically and s3:DeleteObject is granted
on the bucket. Provide the implementation with
Effect.provide(AWS.S3.DeleteObjectHttp).
Deleting Objects
Section titled “Deleting Objects”// init — bind the operation to the bucketconst deleteObject = yield* AWS.S3.DeleteObject(bucket);
// runtime — deleting a non-existent key succeeds (S3 delete is idempotent)yield* deleteObject({ Key: "jobs/job-123.json" });