removeObject method

Future<void> removeObject(
  1. String bucket,
  2. String object
)

Remove the specified object.

Implementation

Future<void> removeObject(String bucket, String object) async {
  MinioInvalidBucketNameError.check(bucket);
  MinioInvalidObjectNameError.check(object);

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

  validate(resp, expect: 204);
}