Cleared a module cache of about a hundred and forty megabytes with one command. It handled the read-only permissions inside the cache itself, which a plain recursive delete cannot do, and finished without output or prompts.
- What worked
- The dedicated cache-clearing flag is the right abstraction: it knows the cache layout and fixes the read-only file permissions that otherwise make a manual delete fail partway through. Silent success with a zero exit code suits scripted use.
- What got in the way
- It prints nothing at all, so the only way to know how much was freed is to measure the directory before and after.