#!/bin/sh
#DEBHELPER#
set -e

. /usr/share/debconf/confmodule

if [ "$1" = "purge" ]; then
    rm -f /etc/confusa/confusa_config.inc.php

	if [ -f /var/log/confusa ]; then
		rm -f /var/log/confusa.log
	fi

    if which ucf >/dev/null 2>&1; then
        ucf --purge /etc/confusa/confusa_config.inc.php
    fi
fi
