removeAll method

Future<void> removeAll(
  1. String path, [
  2. CancelToken? cancelToken
])

Remove files

Implementation

Future<void> removeAll(String path, [CancelToken? cancelToken]) async {
  var resp = await this.c.wdDelete(this, path, cancelToken: cancelToken);
  if (resp.statusCode == 200 ||
      resp.statusCode == 204 ||
      resp.statusCode == 404) {
    return;
  }
  throw newResponseError(resp);
}