diff --git a/scripts/packaging/octez/debian/octez-agnostic-baker.postrm b/scripts/packaging/octez/debian/octez-agnostic-baker.postrm index 08c87c94ca10ac3874576f855be218ed63e2f767..4ea82ae34e4eeac3b03295355d035f6c6da4193c 100755 --- a/scripts/packaging/octez/debian/octez-agnostic-baker.postrm +++ b/scripts/packaging/octez/debian/octez-agnostic-baker.postrm @@ -19,6 +19,11 @@ purge) # Purge debconf data for the package in any case # shellcheck disable=SC2119 db_purge || true + rm -f "/var/tezos/.tezos-client/*_highwatermarks" + rm -f "/var/tezos/.tezos-client/*_stateful_nonces" + rm -Rf "/var/tezos/.tezos-client/logs" + rm -f /var/log/tezos/accuser*.log + rm -f /var/log/tezos/agnostic-baker.log echo "Octez agnostic baker purged" ;; upgrade) diff --git a/scripts/packaging/octez/debian/octez-baker.postrm b/scripts/packaging/octez/debian/octez-baker.postrm index bfa58de28e6da96492e8aee9b2d3f9137c2e482a..8959e882907656bef252bbeb2065164c3247a17d 100755 --- a/scripts/packaging/octez/debian/octez-baker.postrm +++ b/scripts/packaging/octez/debian/octez-baker.postrm @@ -19,6 +19,11 @@ purge) # Purge debconf data for the package in any case # shellcheck disable=SC2119 db_purge || true + rm -f "/var/tezos/.tezos-client/*_highwatermarks" + rm -f "/var/tezos/.tezos-client/*_stateful_nonces" + rm -Rf "/var/tezos/.tezos-client/logs" + rm -f /var/log/tezos/accuser*.log + rm -f /var/log/tezos/baker*.log echo "Octez baker purged" ;; upgrade)