deleteAll

abstract fun deleteAll(vararg paths: String)
abstract fun deleteAll(paths: Iterable<String>)

Deletes all the given target objects from this container.

If the target paths set is empty, this method does nothing.

Parameters

paths

Target paths to delete.

Throws

If one or more of the object deletes in this operation could not be deleted. This does not include errors resulting in the target objects already having been deleted at the time of this method call.

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 deleteAll(action: MultiObjectDeleteParams.() -> Unit)

Deletes all the given target objects from this container.

If the target paths set is empty, this method does nothing.

Parameters

action

Action used to configure the backing S3 operation.

Throws

If one or more of the object deletes in this operation could not be deleted. This does not include errors resulting in the target objects already having been deleted at the time of this method call.

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 deleteAll(params: MultiObjectDeleteParams)

Deletes all the given target objects from this container.

If the target paths set is empty, this method does nothing.

Parameters

params

Parameters for the backing S3 operation.

Throws

If one or more of the object deletes in this operation could not be deleted. This does not include errors resulting in the target objects already having been deleted at the time of this method call.

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.