The ~/.cache/pre-commit/
folder is many GB large, how do I clean it?
Going into every single repository and executing some command there is not an option:
The README
file in the folder says:
This directory is maintained by the pre-commit project.
Learn more: https://github.com/pre-commit/pre-commit
However, I cannot find information if and what data can be deleted.
pre-commit has two builtin commands to handle caches:
both of these are listed in pre-commit --help
-- the standard way to ask a tool for what commands / options it supports
disclaimer: I wrote pre-commit