Index: debian/python3-gnuboat.prerm
===================================================================
--- debian/python3-gnuboat.prerm	(revision ef352a280936d02d00eb958ff35be9181f612f70)
+++ debian/python3-gnuboat.prerm	(revision 86da1105feee0450e48eae9b917d8f83c0fbe10d)
@@ -1,1 +1,26 @@
-python2-gnuboat.prerm
+#!/bin/sh
+set -e
+
+DIR_DATA="/var/lib/gnuboat/"
+DIR_LOG="/var/log/gnuboat/"
+DIR_SPOOL="/var/spool/gnuboat"
+
+rm -R "${DIR_SPOLL}"
+
+if [ "$(ls -A ${DIR_DATA})" ]; then
+	# do not remove the data directory
+	echo "Your data directory (${DIR_DATA}) is not empty. Leaving the data directory untouched!"
+else
+	rm -R "${DIR_DATA}"
+fi
+
+if [ "$(ls -A ${DIR_LOG})" ]; then
+        # do not remove the data directory
+        echo "Your log directory (${DIR_LOG}) is not empty. Leaving the log directory untouched!"
+else
+        rm -R "${DIR_LOG}"
+fi
+
+#DEBHELPER#
+
+exit 0
