Removed an old florescent light from a drop celling and found this splice hiding

https://sopuli.xyz/post/43944703

You can terminate the wires in a junction box as long as the box remains accessible and has a cover. You might also label it with the panel slot #.
Yeah that’s my original plan. Was unsure about leaving some wires up there not juiced
My preference is to always remove wires that aren’t powered to the greatest extent practicable. You don’t want someone in the future deciding they can just randomly use the wire and burn the house down.