World File Cleaner

World File Cleaner

clean world files when server stop

by
33 Downloads
fabricoptimizationutility
Rent Server with this Mod

About this Mod

World File Cleaner – Automatic Save File Cleanup

World File Cleaner is a simple Fabric mod that automatically deletes unnecessary files from your world save folder when a server shuts down or a single-player world is exited, helping keep your save folder tidy and reducing disk usage.

✨ Features

  • Automatically performs cleanup when a dedicated server shuts down or a single-player world is unloaded.
  • Configurable deletion of files/folders (e.g., logs, caches, session locks, statistics, etc.).
  • Safe by default: only non-critical files are deleted (region files or player data will not be removed unless you configure it yourself).
  • Supports both server and client (single-player mode).

📦 Compatibility

  • Minecraft Version: 1.21.11
  • Mod Loader: Fabric
  • Using ModMenu

⚙️ Configuration File

After the first run, a configuration file will be generated at the following path:

config/autoclean.json

Example configuration:

{
	"worldFileEnabled": true,
	"worldFileDeletePatterns": [
        "session.lock"
	],
	"serverFileEnabled": true,
	"serverFileDeletePatterns": [
		".cache",
		"logs"
	],
	"whiteList": [
		"latest.log"
	]
}
  • worldFileEnabled:Switch for world files.
  • worldFileDeletePatterns: Files within the world save folder to be deleted. Use * as a wildcard.
  • serverFileEnabled:Switch for game files.
  • serverFileDeletePatterns: Files within the game root folder to be deleted. Use * as a wildcard.
  • whiteList:Deletion whitelist, takes higher priority.
> 💡 **Warning**: Deleting region files (*.mca) or playerdata will result in lost game progress. These files are excluded in the default configuration.

## ⚠️ Important Notes
- **Always back up** your world save before using the automatic deletion feature for the first time.
- The mod **does not** delete the save folder itself – it only removes the specified files within it.
- On dedicated servers, the mod only needs to run on the server side; clients do not need to install it for the server-side cleanup to work properly.

## 📄 License
This mod is open-sourced under the MIT License.

Available Versions

World File Cleaner 1.4.2release
MC 1.21.11fabric
May 3, 2026

How to Install World File Cleaner on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.11).

3

Install Mod

Open the mod browser in the dashboard and search for "World File Cleaner". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabric

Minecraft Versions

1.21.11

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

World File Cleaner server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.11). You can switch loaders with one click in the panel.

Is World File Cleaner compatible with fabric?

World File Cleaner officially supports fabric for Minecraft 1.21.11. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with World File Cleaner – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if World File Cleaner consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install World File Cleaner with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
MIT License
Server-side
Required

Supported Versions

1.21.11