deleteFile method

Future<Map<String, dynamic>> deleteFile({
  1. required String fileId,
  2. required String apiKey,
})

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;
}