remove def snippet