Leaving a live wire in a wall or concealed junction box is wrong and potentially dangerous.
The good news is you may not need to do that. If the hot, neutral and ground are in the switch box, simply disconnect all 3 and everything after the switch is dead wire. Completely removing the outgoing wire from the switch box insures that no one will ever make it live again.
I'm not sure what code says about dead wires in a wall but I'm fairly sure there are a lot of them floating around the country.
You may not like the lights but the next person may. Could you just remove the switch, cap the wires and install a blank cover?
The good news is you may not need to do that. If the hot, neutral and ground are in the switch box, simply disconnect all 3 and everything after the switch is dead wire. Completely removing the outgoing wire from the switch box insures that no one will ever make it live again.
I'm not sure what code says about dead wires in a wall but I'm fairly sure there are a lot of them floating around the country.
You may not like the lights but the next person may. Could you just remove the switch, cap the wires and install a blank cover?