func (client *Client) DeleteBucketWithContext(ctx context.Context, bucketName string) error {
	req := &clientRequest{
		BucketName: bucketName,
		Method:     HTTPDelete,
	}

	resp, err := client.do(ctx, req)
	if err != nil {
		return err
	}
	defer resp.Body.Close()

	return err
}
// DeleteBucketWithContext delete bucket with context controlling
DeleteBucketWithContext delete bucket with context controlling
// DeleteBucketWithContext delete bucket with context controlling
func (client *Client) DeleteBucketWithContext(ctx context.Context, bucketName string) error {
	req := &clientRequest{
		BucketName: bucketName,
		Method:     HTTPDelete,
	}
	resp, err := client.do(ctx, req)
	if err != nil {
		return err
	}
	defer resp.Body.Close()
	return err
}
func ( client * Client ) DeleteBucketWithContext ( ctx context . Context , bucketName string ) error { req := & clientRequest { BucketName : bucketName , Method : HTTPDelete , } resp , err := client . do ( ctx , req ) if err != nil { return err } defer resp . Body . Close ( ) return err }
DeleteBucketWithContext delete bucket with context controlling
DeleteBucketWithContext delete bucket with context controlling