delete autocmd properly