remove method

Future<int?> remove(
  1. String path, {
  2. String pattern = '*',
  3. bool recursive = false,
})

Implementation

Future<int?> remove(
  String path, {
  String pattern = '*',
  bool recursive = false,
}) async {
  if (path.isEmpty) throw ArgumentError.value(ExceptionMessage.emptyPath);

  var methodName = '/files/$path?pattern=$pattern&sub=$recursive';

  return await Invoker.delete(methodName);
}