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