#!/bin/sh

case "$2" in
POST-DEINSTALL)
	if [ -d /usr/local/www/kibana8/optimize ]; then
		/usr/bin/find /usr/local/www/kibana8/optimize/ -delete
	fi

	cat <<EOMSG

If kibana8 is being deleted permanently, and you do not wish to keep any
data that was in the cluster, then you may wish to delete the
/usr/local/www/kibana8 directory.  This can be done by with the command:

	# rm -rf /usr/local/www/kibana8

Please ignore this if kibana8 is being upgraded
EOMSG
    ;;
esac
