thin-edge.io icon indicating copy to clipboard operation
thin-edge.io copied to clipboard

Script to delete thin-edge.io from device

Open mbay-ODW opened this issue 1 year ago • 3 comments

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

  1. Stop services sudo systemctl stop tedge-mapper-collectd sudo tedge disconnect c8y sudo tedge disconnect az sudo systemctl stop apama

  2. 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

  3. delete /etc/tedge rm -r /etc/tedge

mbay-ODW avatar Jul 13 '22 08:07 mbay-ODW

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

rina23q avatar Jul 13 '22 11:07 rina23q

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

rina23q avatar Jul 19 '22 10:07 rina23q

Resolved with #1320 #1331

PradeepKiruvale avatar Aug 12 '22 08:08 PradeepKiruvale

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!

rina23q avatar Aug 30 '22 08:08 rina23q

looks good, will close

mbay-ODW avatar Aug 30 '22 08:08 mbay-ODW