deleteFile method

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

Delete a file

Implementation

Future<Map<String, dynamic>> deleteFile({required String fileId}) async {
  try {
    _checkApi(values: [fileId]);
    final result = await service.deleteFile(fileId: fileId, apiKey: _apiKey);
    return result;
  } catch (e) {
    throw _exceptionCheck(e);
  }
}