Is Your AI Coding Tool Eating Up Your C Drive? How to Find the Culprit and Clean It Up Safely

    Many developers find their C drive filling up after months of using AI coding assistants. This guide explains the four main sources of disk usage—model caches, plugins, logs, and indexes—shows how to locate and measure the data directories, and walks through a three-step cleanup from low to high risk, including safely migrating caches to another drive.

    1. Why the C Drive Keeps Filling Up

    Many developers run into the same situation. The C drive had hundreds of gigabytes free, yet after using an AI coding assistant for a few months, free space keeps shrinking until a “low disk space” warning appears—and sometimes you can’t even start a new conversation or save a file. On inspection, the culprit usually isn’t your project code or dependencies, but data the tool itself leaves behind locally.

    These tools typically handle LLM inference, code indexing, and plugin extensions at the same time. As they run, they continuously write data to the local disk. If you never clean this up, it gradually eats into the system drive, affecting both development efficiency and system stability.

    2. The Four Main Sources of Disk Usage

    To fix the space problem, you first need to know where the data comes from. The table below summarizes the four most common sources. Actual paths vary by tool, so check your own installation.

    Source Typical Location Size Characteristics Cleanup Risk Recommended Action
    Model cache and inference data Hidden folders under the user directory Model files can reach several GB; inference records grow with use Medium—first run after cleanup requires re-downloading Clean as needed, or migrate to another drive
    Plugins and extensions Extension directory under the user directory Old version backups may consume several times the space Low, as long as the plugin is disabled Uninstall idle plugins and delete old version directories
    Logs and crash dumps The logs folder under the tool’s config directory Logs accumulate over time; a single dump can be tens of MB Low Set a retention period; delete old logs and dumps
    Index and cache databases Cache directory under the user directory Can reach several GB for projects with many files Medium—the tool slows down while rebuilding Keep the latest index; rebuild when necessary

    2.1 Local Model Cache and Inference Data

    To reduce latency and support offline scenarios, some tools store model weights or quantized versions locally. Model files range from a few hundred MB to several GB.

    In addition, each completion or conversation may generate intermediate inference results, context snapshots, and similar data. Some of it is stored temporarily, some persistently. As the number of conversations grows, the file count can increase quickly, depending mainly on usage frequency and the tool’s retention policy. When judging how much space is used, rely on the actual directory size rather than a rough estimate.

    2.2 Plugins and Extensions

    Plugins are typically used for code formatting, static analysis, framework scaffolding, themes, and similar features. When a plugin is first activated, it may download dependency libraries, language servers, and syntax highlighting resources. These files are installed by default in the user directory on the system drive.

    When a plugin auto-updates, some tools keep the old version instead of overwriting it. Frequently updated plugins may leave behind multiple historical versions. If the tool supports a custom extension directory, configure it according to the official documentation.

    2.3 Logs and Crash Dumps

    Tools record startup logs, request latency, and error stack traces to help with troubleshooting. Most tools rotate logs by day or by file size, but some lack a reasonable retention policy. When investigating, check the following:

    • Whether log retention days have an upper limit
    • Whether individual log files have a size cap
    • Whether crash dumps are cleaned up automatically

    When the tool or a plugin crashes, the system may generate a memory dump file. A single file can be tens of MB. Without automatic cleanup, these files stay on disk indefinitely.

    2.4 Indexes and Cache Databases

    To support global search, symbol navigation, and code suggestions, tools build indexes for the workspace. Indexes are usually stored as databases or inverted-index files. The larger the project, the larger the index.

    When a tool monitors file changes, it may keep old index snapshots to avoid frequent full rebuilds, which increases usage further.

    3. Investigating C Drive Usage

    Step 1: Locate the Data Directories

    Most tools create a configuration folder starting with a dot under the user’s home directory, or store data in a cache directory. Common locations include:

    • Configuration and cache: C:\Users\<username>\.<tool-name>
    • Log files: C:\Users\<username>\.<tool-name>\logs
    • Models and cache: C:\Users\<username>\.cache\<tool-name>

    Refer to the tool’s official documentation or installation guide for the exact names.

    Step 2: Measure Directory Sizes

    On Windows, run the following command in PowerShell to measure the total size of a directory (in bytes):

    1. Get-ChildItem -Path "C:\Users\<username>\.<tool-name>" -Recurse -File | Measure-Object -Property Length -Sum

    To see usage by subdirectory, substitute each subdirectory path and run the command separately. You can also use the built-in Storage Sense feature, or third-party tools like WinDirStat or TreeSize, to view directories sorted by size in descending order.

    On macOS or Linux, use the du command:

    1. du -sh ~/.<tool-name> ~/.cache/<tool-name>
    2. du -sh ~/.* 2>/dev/null | sort -h | tail -n 15

    The second command lists the 15 largest entries under your home directory.

    Step 3: Decide What Can Be Deleted

    • Log files (.log, .out): can be deleted, but keep the last few days of records
    • Crash dumps (.dmp, .dump): usually safe to delete; keep them temporarily if you are actively debugging
    • Old plugin version directories: can be deleted once you confirm the plugin is disabled
    • Model cache: can be cleaned, but the tool will re-download it on next use
    • Index databases: can be rebuilt, though the tool may respond slowly during the rebuild

    Frequently Asked Questions

    How do I investigate when the C drive is nearly full?
    Start by measuring the user directory and tool directories as described above to find the largest folders. Then match them against the table in Section 2 to identify which type of data is responsible.

    Can the model cache be deleted?
    Yes. The tool will re-download it the next time it runs, and some features may be temporarily limited in the meantime. If your network is slow, migrating the cache to another drive is better than deleting it outright.

    How do I clean up old plugin versions?
    First confirm the currently used version number in the plugin management page, then inspect the plugin directory. Old folders with version numbers in their names can be deleted once you confirm no background process is using them.

    How long should logs be kept?
    Keeping the last 7 days is generally sufficient. If you need long-term traceability, archive old logs to another drive instead of leaving them on the C drive.

    4. A Three-Step Cleanup

    The steps below are ordered from low risk to high risk. Before each step, make sure the tool is fully closed and back up its configuration files.

    Step 1: Clean Logs and Temporary Files (Lower Risk)

    After closing the tool, go to the logs or log subfolder under the configuration directory. First preview logs older than 30 days with this command:

    1. forfiles /p "C:\Users\<username>\.<tool-name>\logs" /s /m *.log /d -30

    This command only lists files—it does not delete anything. Once you confirm the list looks right, delete those files manually. Temporary files in temp or tmp folders can be cleared directly.

    You can also run Disk Cleanup in Windows and select “Temporary files” and “Delivery Optimization Files” to free up system-level junk.

    Step 2: Uninstall Idle Plugins and Remove Leftovers (Lower Risk)

    In the tool’s plugin management page, disable or uninstall plugins you no longer use. After uninstalling, check the plugin directory and delete the corresponding folders. Directories with version-number suffixes are usually old versions and can be removed as well.

    For dynamic components such as language servers, confirm no background process is holding them before deleting the related subdirectories in the cache folder.

    Step 3: Migrate Model Cache and Index Data (Proceed with Caution)

    For a long-term reduction of pressure on the C drive, you can migrate data directories to a non-system drive with plenty of space. Complete the following steps before and during migration:

    1. Fully back up the original data directory, and verify the backup opens correctly.
    2. Check the tool’s documentation to confirm the current version supports a custom data path.
    3. Close all tool processes, then copy the original directory to the target drive, for example D:\dev-cache\tool-data.
    4. Verify the copy by comparing file counts and total sizes.
    5. Point the tool to the new path via environment variables (such as TOOL_HOME or TOOL_CACHE_DIR) or a cachePath field in the configuration file. Refer to the official documentation for the exact variable and field names.
    6. Start the tool and verify that conversation, completion, and indexing all work normally.
    7. Keep the original directory for at least a week. Delete it only after confirming everything works.

    If the tool does not support custom paths, you can use a directory junction to redirect the original location to another drive—on Windows, create it with mklink /J. This approach works, but if the link breaks, the tool may fail to start, so back up beforehand.

    5. Habits for Long-Term Maintenance

    A one-time cleanup only provides temporary relief. Ongoing maintenance keeps the space from filling up again. Consider the following habits:

    5.1 Check Tool Directories Regularly

    Inspect tool directories once a month, deleting last month’s old logs and unnecessary caches. You can put the preview commands into a script and add it to the system task scheduler to periodically output a list of files pending cleanup.

    5.2 Tune the Tool’s Automatic Features

    In settings, disable unnecessary advanced context features or limit how many historical sessions are retained. Some tools let you set a maximum cache size or log retention period—configure these reasonably based on your disk capacity.

    5.3 Externalize Data Directories When Installing New Tools

    After installing a tool, first check whether it supports a custom data path. If it does, point the cache, log, and model directories to another drive before the first launch. This prevents data from gradually accumulating on the C drive.

    5.4 Consider Cloud-Based Analysis in Team Scenarios

    For team collaboration, some code analysis services can run in the cloud, with the local machine keeping only lightweight client data. This reduces local usage, but you need to evaluate network latency and data security requirements. Individual developers are usually better served by local directory migration.

    6. Conclusion

    AI coding tools boost development efficiency, but they also leave a significant amount of data on the system drive. Model caches, old plugin versions, logs and dumps, and index snapshots are the four most common sources.

    When troubleshooting, measure directory sizes first, then clean up step by step from low to high risk. When migrating data, always back up, verify the copy, and keep the original directory for a while. The approach in this article applies to most tools, but refer to each tool’s official documentation for the exact path configuration and cleanup methods it supports. With a habit of regular checks, your C drive won’t hit a critical warning at the worst possible moment.