thin-edge.io
thin-edge.io copied to clipboard
Script to delete thin-edge.io from device
Describe the bug Currently I can install thin-edge.io via script. But I can not uninstall it and have to manually delete all parts.
Expected behavior thin-edge.io provides a script that allows complete or binary (e.g. keep configs) uninstallation of thin-edge.io.
Additional context Following steps might be needed within the script
-
Stop services sudo systemctl stop tedge-mapper-collectd sudo tedge disconnect c8y sudo tedge disconnect az sudo systemctl stop apama
-
purge apts sudo apt --assume-yes purge tedge tedge_mapper tedge_agent tedge_watchdog tedge_apt_plugin tedge_apama_plugin c8y_log_plugin c8y_configuration_plugin sudo DEBIAN_FRONTEND=noninteractive apt --assume-yes purge mosquitto-clients mosquitto libmosquitto1 collectd-core collectd
-
delete /etc/tedge rm -r /etc/tedge
It would be good that the script supports the both purge
and remove
.
For purging, I have created this script for CI pipeline. We can use it as start point. https://github.com/thin-edge/thin-edge.io/blob/main/ci/installation_scripts/clean_up_rpi.sh
AC:
- Create a simple script to
purge
/remove
thin-edge.io packages. - Add the description how to uninstall on https://thin-edge.github.io/thin-edge.io/html/howto-guides/002_installation.html
Resolved with #1320 #1331
Hi @mbay-ODW, now we have the description how to uninstall, and the script.
If you are happy with them, can you close the issue? If no comment after 1 week, we will close the issue as it's done in our point of view. Thanks in advance!
looks good, will close