deleteFile method

  1. @override
Future<void> deleteFile(
  1. String path
)
override

Deletes a file from the cloud storage.

Implementation

@override
Future<void> deleteFile(String path) async {
  _checkAuth();
  await _dio.post(
    'https://api.dropboxapi.com/2/files/delete_v2',
    data: jsonEncode({'path': _normalizePath(path)}),
    options: Options(contentType: 'application/json'),
  );
}