delete unused snippets in text-mode