deleteFile method
Delete File
Delete a file by its unique ID. Only users with write permissions have access to delete this resource.
Implementation
Future deleteFile({required String bucketId, required String fileId}) async {
final String path = '/storage/buckets/{bucketId}/files/{fileId}'
.replaceAll('{bucketId}', bucketId)
.replaceAll('{fileId}', fileId);
final Map<String, dynamic> params = {};
final Map<String, String> headers = {
'content-type': 'application/json',
};
final res = await client.call(HttpMethod.delete,
path: path, params: params, headers: headers);
return res.data;
}