{
  "id": 22161649,
  "title": "What you lose when you delete ~/.cache",
  "url": "https://urgent.news/2026/11/27/what-you-lose-when-you-delete-cache",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-27T12:49:32.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/notaflightrisk/what-you-lose-when-you-delete-cache-54eg"
  },
  "original_language": "en",
  "account": "Deleting the ~/.cache folder can have significant consequences, particularly for applications like Langflow, JetBrains, and Deno. These applications store essential data related to user credentials, local history, clipboard information, and other settings in the cache folder. When the cache is deleted, all of this data is lost, requiring users to re-enter their API keys, recreate their local history, and restore their clipboard data manually.\n\nThe XDG specification designates the cache folder as a location for \"non-essential data files,\" meant to provide temporary storage for applications. However, many users unknowingly delete the entire cache folder, which often contains crucial data for their productivity tools.\n\nFor example, Langflow stores its encryption key and saved API keys in ~/.cache/langflow/secret_key. Deleting this folder would render all saved API keys inaccessible, forcing users to manually re-enter them into the application. Similarly, JetBrains projects store their local history in ~/.cache/JetBrains, which keeps track of every change made to the code. Removing this folder would result in the loss of the ability to recover accidentally modified files, as the IDE no longer retains this version control information.\n\nClipboard managers like Clipboard Indicator and Clipboard History also keep user data in the cache folder. Deleting this data would erase the history of past clipboard content, making it impossible to retrieve previously pinned or copied items. The same applies to Deno's localStorage, which is meant to persist between runs and store user data, such as a ToDo script I wrote.\n\nWhile some applications, like JetBrains and Langflow, provide settings to manually re-enter lost data, others do not. Clipboard Indicator, for instance, currently lacks a dedicated setting for managing user-pinned clips, requiring users to manually export and import their data.\n\nIn summary, deleting the ~/.cache folder poses a significant risk to users of various applications, potentially resulting in the loss of crucial data such as API keys, local history, and clipboard information. Users should be cautious when tinkering with their cache folders, as the consequences can be severe.",
  "summary": "I saved an OpenAI key in Langflow , stopped it, deleted ~/.cache and started it again. The key was still in Langflow's database. Langflow just couldn't read it any more, and every time it tried, its log said \"API key decryption failed after retry. This may indicate a corrupted key or SECRET_KEY mismatch.\" If you install Langflow with pip or uv and don't set anything, the key it encrypts your…",
  "summary_source": "publisher",
  "key_points": [
    "Deleting ~/.cache loses user credentials, local history, clipboard data",
    "Applications like Langflow, JetBrains, Deno store essential data in cache",
    "XDG spec allows non-essential data in cache, but many users delete it"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}