delete

abstract fun delete()

Deletes this bucket.

See also

Throws

If this bucket is not empty and must be cleared before deletion.

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


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

Deletes this bucket with the operation configured by the given action.

See also

Parameters

action

Action used to configure the S3 operation.

Throws

If the S3 operation parameters are missing required fields or otherwise incorrectly configured.

If this bucket is not empty and must be cleared before deletion.

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


abstract fun delete(params: BucketDeleteParams)

Deletes this bucket with the operation configured by the given params.

See also

Parameters

params

S3 operation parameters.

Throws

If the S3 operation parameters are missing required fields or otherwise incorrectly configured.

If this bucket is not empty and must be cleared before deletion.

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