deleteFile method
Deletes a file from the cloud.
Implementation
Future<void> deleteFile() async {
try {
return await _methodChannel.invokeMethod<void>(
'AGCStorageReference#deleteFile',
<String, dynamic>{
'bucket': storage.bucket,
'policyIndex': storage.policy?.index,
'objectPath': path,
},
);
} catch (e) {
throw AGCStorageException._from(e);
}
}