This all on same breaker. Left, spliced wires are hot, but do nothing and there’s no switch for them.
Wires on the right are on a switch that controls two other lights closer to the breaker.
Can I just removed the splice and terminate the hot wires into a box mounted on the rafter?
i think the spliced goes to these wires, then leads somewhere else?




It’s preferable to remove unused wiring.
But as long as they’re in a junction box and it’s accessible, then it’s ok. But once it’s at least safe and you forget about it, eventually someone else will have to spend the time to figure it out. You saving a little time now could be someone’s much larger expense in the future
Confession time: I have a circuit halfway removed when the project got interrupted and now it’s been a couple years. People panic at the sight of bare wires, understandably, but only I know that most of it is removed so it could never be hot. That would fail an inspection and block a home sale. Do NOT do this