Which data structure would you choose for this case?

This Stack Overflow question shows up constantly:

How would you answer it for production code in 2026, including the caveat most people miss?

Sarah

Use git clean -fd after a dry run with git clean -nd, and the caveat people miss is that ignored files are not removed unless you add -x or -X, which can wipe .env, build caches, or editor state you meant to keep.

Quelly