creating snippets, deleting files and buffers