deleteObject method

HttpRequest deleteObject(
  1. String bucketName,
  2. String fileKey
)

delete file @param bucketName type:String name of bucket @param fileKey type:String upload filename @return type:HttpRequest

Implementation

HttpRequest deleteObject(String bucketName, String fileKey) {
  final url = "https://${bucketName}.${this.endpoint}/${fileKey}";
  final req = HttpRequest(url, 'DELETE', <String, dynamic>{}, <String, String>{});
  this._auth!.signRequest(req, bucketName, fileKey);
  return req;
}