delete

abstract fun delete(name: BucketName)

Deletes the target bucket from the S3 instance.

If the target bucket does not exist, this method does nothing.

Parameters

name

Name of the bucket to delete.

Throws

If an implementation specific exception is thrown. The implementation specific exception will be set to the thrown exception's 'cause' value.


abstract fun delete(name: BucketName, action: BucketDeleteParams.() -> Unit)

Deletes the target bucket from the S3 instance.

If the target bucket does not exist, this method does nothing.

Parameters

action

Action used to configure the S3 operation parameters.

Throws

If an implementation specific exception is thrown. The implementation specific exception will be set to the thrown exception's 'cause' value.


abstract fun delete(name: BucketName, params: BucketDeleteParams)

Deletes the target bucket from the S3 instance.

If the target bucket does not exist, this method does nothing.

Parameters

params

S3 operation parameters.

Throws

If an implementation specific exception is thrown. The implementation specific exception will be set to the thrown exception's 'cause' value.