Deletes the current bucket.
Deletes the current bucket.
import akka.stream.Materializer import com.zengularity.benji.BucketRef def foo(bucketRef: BucketRef)(implicit m: Materializer) = bucketRef.delete()
Updates the request, so that it will not raise an error if the referenced bucket doesn't exist when executed.
Updates the request, so that it will not raise an error if the referenced bucket doesn't exist when executed.
import akka.stream.Materializer import com.zengularity.benji.BucketRef def foo(myBucket: BucketRef)(implicit m: Materializer) = myBucket.delete.ignoreIfNotExists() def bar(myBucket: BucketRef)(implicit m: Materializer) = myBucket.delete.ignoreIfNotExists.recursive()
Updates the request so that it will succeed on non-empty bucket, by also deleting all of its content, this includes its objects and if applicable also all versions of the objects.
Updates the request so that it will succeed on non-empty bucket, by also deleting all of its content, this includes its objects and if applicable also all versions of the objects.
import akka.stream.Materializer import com.zengularity.benji.BucketRef def foo(myBucket: BucketRef)(implicit m: Materializer) = myBucket.delete.recursive() def bar(myBucket: BucketRef)(implicit m: Materializer) = myBucket.delete.recursive.ignoreIfNotExists()
A request to delete the bucket.