Amazon.S3.Util.AmazonS3Util.BeginDeleteS3BucketWithObjects C# (CSharp) Method

BeginDeleteS3BucketWithObjects() public static method

Initiates the asynchronous execution of the DeleteS3BucketWithObjects operation. DeleteS3BucketWithObjects 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.
public static BeginDeleteS3BucketWithObjects ( IAmazonS3 s3Client, string bucketName, AsyncCallback callback, object state ) : IAsyncCancelableResult
s3Client IAmazonS3 The Amazon S3 Client to use for S3 specific operations.
bucketName string The bucket to be deleted.
callback AsyncCallback An AsyncCallback delegate that is invoked when the operation completes.
state object A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback procedure using the AsyncState property.
return IAsyncCancelableResult
        public static IAsyncCancelableResult BeginDeleteS3BucketWithObjects(IAmazonS3 s3Client,string bucketName, 
            AsyncCallback callback, object state)
        {
            return BeginDeleteS3BucketWithObjects(s3Client, bucketName, 
                new S3DeleteBucketWithObjectsOptions
                {
                    ContinueOnError = false,
                    QuietMode = true,
                },
                callback,
                state);
        }

Same methods

AmazonS3Util::BeginDeleteS3BucketWithObjects ( IAmazonS3 s3Client, string bucketName, Amazon.S3.Util.S3DeleteBucketWithObjectsOptions deleteOptions, Action updateCallback, AsyncCallback callback, object state ) : IAsyncCancelableResult
AmazonS3Util::BeginDeleteS3BucketWithObjects ( IAmazonS3 s3Client, string bucketName, Amazon.S3.Util.S3DeleteBucketWithObjectsOptions deleteOptions, AsyncCallback callback, object state ) : IAsyncCancelableResult