Clean up the snippetDeleteDialog directive