AWS SDK for .NET Documentation
DeleteS3BucketWithObjects Method (bucketName, s3Client, deleteOptions)
AmazonAmazon.S3.UtilAmazonS3UtilDeleteS3BucketWithObjects(String, AmazonS3, S3DeleteBucketWithObjectsOptions) Did this page help you?   Yes   No    Tell us about it...
Deletes an S3 bucket which contains objects. An S3 bucket which contains objects cannot be deleted until all the objects in it are deleted. This method deletes all the objects in the specified bucket and then deletes the bucket itself.
Declaration Syntax
C#
public static void DeleteS3BucketWithObjects(
	string bucketName,
	AmazonS3 s3Client,
	S3DeleteBucketWithObjectsOptions deleteOptions
)
Parameters
bucketName (String)
The bucket to be deleted.
s3Client (AmazonS3)
The Amazon S3 Client to use for S3 specific operations.
deleteOptions (S3DeleteBucketWithObjectsOptions)
Options to control the behavior of the delete operation.

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)