clean-server-runtime.bat

Remove generated runtime files before a clean reinstall or repository cleanup.

Type: Windows batch file
Action: Destructive to generated runtime
Source on GitHub
Stop the server and make a backup before using cleanup. World data and generated configuration are not recreated by magic.

What it removes

DataBehavior
Generated loader runtimeFabric or NeoForge files, libraries, installer cache, and generated entry points.
Downloaded modsGenerated mod jars are removed so the next setup can download the selected manifest again.
Generated configurationGenerated local files such as logs, crash reports, and runtime settings may be removed.
WorldsWorld folders and player data are deleted by cleanup. Make an independent backup first.

Loader reset

The script asks whether to reset the selected loader. Choose Y when you want the next start-server.bat run to ask for Fabric or NeoForge again. Choose N to retain the current loader selection for reinstall.

Safe procedure

  1. Type stop in the server console and wait for it to close.
  2. Copy the world directories and important configuration to a dated backup folder.
  3. Run clean-server-runtime.bat from the repository root.
  4. Choose whether the loader should also be reset.
  5. Run start-server.bat and follow the setup prompts.

See the How Jarock works page and the CLEANUP.md for the complete repository policy.