Uninstall the IoT Edge runtime
- Last UpdatedSep 02, 2025
- 1 minute read
To uninstall the IoT Edge runtime 1.1.x from a device:
-
Remove the IoT Edge runtime 1.1.x from your device with the following command:
sudo apt-get autoremove --purge iotedge
-
After the IoT Edge runtime is removed, any containers it created are stopped, but still exist on your device. Use the following command to view all containers on your device:
sudo docker ps -a
-
Delete each container from your device with the following command:
sudo docker rm -f <container name>
-
After deleting the containers, remove the container runtime with the following command:
sudo apt-get autoremove --purge moby-engine
-
Reboot your device.
The IoT Edge runtime is now removed from your device.
To uninstall the IoT Edge runtime 1.4.x from a device:
-
Remove the IoT Edge runtime 1.4.x from your device with the following command:
sudo apt-get autoremove --purge aziot-edge
-
After the IoT Edge runtime is removed, any containers it created are stopped, but still exist on your device. Use the following command to view all containers on your device:
sudo docker ps -a
-
Delete each container from your device with the following command:
sudo docker rm -f <container name>
-
After deleting the containers, remove the container runtime with the following command:
sudo apt-get autoremove --purge moby-engine
-
Reboot your device.
The IoT Edge runtime is now removed from your device.