deleteFile method
Delete a file.
Implementation
Future<Map<String, dynamic>> deleteFile(
{required String fileId, required String apiKey}) async {
final response = await dio.delete(UrlBuilder.filePathWithId(fileId),
options: Options(headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer $apiKey'
}));
return response.data;
}