removeBucket method

Future<void> removeBucket(
  1. String bucket
)

Remove a bucket.

Implementation

Future<void> removeBucket(String bucket) async {
  MinioInvalidBucketNameError.check(bucket);

  final resp = await _client.request(
    method: 'DELETE',
    bucket: bucket,
  );

  validate(resp, expect: 204);
  _regionMap.remove(bucket);
}