Gateway: How to uninstall

How do I uninstall the IOT Gateway code from a raspberry pi? (I’ve got the pi setup like I want for other things, but don’t want to use iot on it any longer.)

I know I can delete /home/pi/mozilla-iot. Anything else? I’m guessing there are auto-run scripts, etc?

(I’m not worried about installed packages that might be no longer necessary.)

# remove gateway code
rm -rf ~/mozilla-iot

# remove gateway user config
rm -rf ~/.mozilla-iot

# remove node.js and nvm
rm -rf ~/.nvm

# remove python add-on bindings
sudo pip3 uninstall gateway_addon

# remove system services
sudo systemctl stop mozilla-iot-gateway.service
sudo systemctl disable mozilla-iot-gateway.service
sudo systemctl stop mozilla-iot-gateway.check-for-update.timer
sudo systemctl disable mozilla-iot-gateway.check-for-update.timer
sudo update-rc.d -f gateway-iptables remove
sudo rm /etc/systemd/system/mozilla-iot-gateway.*
sudo rm /etc/init.d/gateway-iptables

@mrstegeman - awesome! Thanks so much.