code: private void doUninstall(final Message<JsonObject> message) {
      String moduleName = message.body().getString("module");
      if (moduleName == null) {
        message.reply(new JsonObject().putString("status", "error").putString("message", "No module specified."));
        return;
      }
  
      platform.uninstallModule(moduleName, new Handler<AsyncResult<Void>>() {
        @Override
        public void handle(AsyncResult<Void> result) {
          if (result.failed()) {
            message.reply(new JsonObject().putString("status", "error").putString("message", result.cause().getMessage()));
          } else {
            message.reply(new JsonObject().putString("status", "ok"));
          }
        }
      });
    }
docs: Uninstalls a module.