remove snippets of a root directory