delete

abstract fun delete(path: String)

Deletes the object at the target path from this container.

Parameters

path

Path to the target object to delete.

Throws

If this bucket or the bucket in which this object container resides no longer exists.

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


abstract fun delete(path: String, action: DeleteParams.() -> Unit)

Deletes the object at the target path from this container.

Parameters

action

Action used to configure the backing S3 operation.

Throws

If this bucket or the bucket in which this object container resides no longer exists.

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


abstract fun delete(path: String, params: DeleteParams)

Deletes the object at the target path from this container.

Parameters

params

Parameters for the backing S3 operation.

Throws

If this bucket or the bucket in which this object container resides no longer exists.

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