delete method

Future<void> delete(
  1. String id
)

Implementation

Future<void> delete(String id) async {
  if(!await ready()) return Future.value();
  try{
    return await api!.files.delete(id);
  }catch(e, stack){
    if(e is PlatformException && e.code == "network_error"){
      return;
    }
    if(kDebugMode){
      print("delete:");
      print("${e.toString()}\n${stack.toString()}");
    }else if (onError != null){
      onError!(e, stack);
    }
    return;
  }
}