clean old template