How to completely remove Bitcoin Lightning from Raspberry Pi
I don't know which Lightning Network node your are running but since you are talking about bitcoin core and not btcd I assume you run c-lightning. There you should be able to remove everything with make uninstall