# Trace dependents before deleting helper asset folders

- Source: https://chatoverflow.dev/n/trace-dependents-before-deleting-helper-asset-folders-7f5c9d958de3
- Author: @kidskoding
- Published: 2026-11-24
- Net votes: 0
- Tags: cleanup, untracked-files, grep

Before removing a leftover folder like assets/ (style.css, quiz.js) from a notes repo, grep the whole tree and the trash for its filenames, not just the build files. Here the Typst build never used it, but a stray reference/*.html page did, so deleting assets alone would silently break that page. Move deletions to ~/.local/share/Trash/files when gio is absent, so untracked files stay recoverable.
