Andirz.com
compatible

Cleanup Script for Windows

Keep your game running smoothly by removing temporary cache and diagnostic logs with one simple tool.

File Type Batch
Version 1.5.0
Last Update Sep 28, 2026

Description

The Cleanup Script for Windows is a small utility designed to keep your The Sims 4 user folder clean and healthy. It removes temporary cache folders and diagnostic log files that can build up over time and may cause lag, UI glitches, or confusing error reports — especially after game updates or frequent mod changes.

Important: Nothing is deleted automatically. Files are only removed when you manually run the script. This gives you full control and allows you to keep logs for troubleshooting if needed. The script checks whether it is running with Administrator rights. If not, it automatically restarts and asks for permission. This prevents situations where the script appears to “do nothing” because Windows blocks file access.

This script deletes the following data:

  • onlinethumbnailcache (folder and all files)
  • cachestr (folder and all files)
  • ConfigOverride, Screenshots & Снимки экрана (folders – deleted only if empty)
  • localthumbcache.package
  • localsimtexturecache.package
  • avatarcache.package
  • UserData.lock
  • notify.glob
  • ConnectionStatus.txt
  • GPU Benchmark Results.txt & GPU Score Results.txt
  • lastCrash, lastException & lastUIException (all matching .txt files)

Logs from supported mods

The script also removes the following diagnostic logs. Only matching log or report files are affected; the mods themselves and their settings are not deleted.

Mod Logs removed
Andirz Smart Core Script Andirz_*.log
Better Exceptions by TwistedMexi BE-ExceptionReport*.html, BE-UIExceptionReport*.html
Better Time Control by ModNest *better-time-control* logs and reports
MidniteTech Script *midnitetech_log* logs and reports
TANK’s Mods *TanksMods* logs and reports
WickedWhims *WickedWhims* and *WhimsInfo* logs and reports

No other files will be deleted. Your Saves, Mods, Tray files, and all personal game data remain untouched.

Availability

The Cleanup Script is available exclusively to supporting patrons on Patreon. As a separate Windows utility rather than an in-game The Sims 4 mod, it is offered as paid content. A submission to CurseForge was rejected because the script is not a mod.

Why you should delete cache files?

Cache files are meant to be temporary. After patches, mod updates, or configuration changes, they can become outdated or corrupted. Deleting them forces the game to regenerate fresh data on the next start, which often resolves:

  • random UI issues;
  • long loading times;
  • visual glitches;
  • misleading error messages.

Language & Translations

This tool is a Windows batch script and contains no in-game text strings. The script itself is written in English only. Translations are not possible and not required, as the script does not interact with the game UI or use localized text.

Installation Guide

Batch Tool Installation
  • Location: Move the .bat file into the main The Sims 4 folder.
  • Execution: Run the file by double-clicking (Windows only).
New to modding? Check out this Modding Tutorial.

Frequently Asked Questions

Does this script work on macOS or iMac?
No. This is a Windows batch script (.bat) and cannot run on macOS or iMac systems.

Does this script delete save files or mod settings?
No. The script does not delete save games, households, lots, or configuration files from other mods. It only removes temporary cache data and diagnostic log files that the game automatically recreates.

Can this script break my game?
No. Deleting cache files is safe and recommended after updates or mod changes. The game will automatically regenerate everything it needs on the next launch.

When should I run this script?
Run it after game updates or changes to your mods, or when you notice lag, UI glitches, or unusual errors. You can also use it to clear old logs before collecting a fresh error report.

The script opens and closes very quickly – is that normal?
Yes. If there is nothing to delete, the script may finish almost instantly.

Why does Windows warn me about file deletion?
That warning is expected and intentional. The entire purpose of this script is to delete temporary cache and log files. If you feel unsure, you can simply open the .bat file in any text editor (for example Notepad). You will see that it only deletes the explicitly listed cache folders and log files — nothing else.

Download on Patreon
Not on CurseForge
Usage Policy — Terms of Use
Allowed
  • Using this mod in personal gameplay
  • Showing the mod in videos, streams, or screenshots
Not Allowed
  • Reuploading or redistributing the mod files
  • Including the mod in mod packs or archives