code: function switchAndClear(pkg) {
      switchState(false, pkg);
  
      //unload proxy routes
      proxy.deleteBy(app.config.get('public-port'), {user: pkg.user, appid: pkg.name});
    }
docs: update drone state and clear proxy routes