Deletes an S3 (or S3-compatible) bucket or a single object. Without an object argument the bucket itself is deleted; with an object argument the single key is deleted. Deleting a non-empty bucket requires force=true, which empties the bucket first.
s3Delete(bucket [, object, force, accessKeyId, secretKey, host])
→ returns void
falseRemoves one key from the bucket.
s3Delete("my-bucket", "logs/today.txt");
force=true empties the bucket before deleting it.
s3Delete("my-bucket", "", true);
Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.