delete useless snippets