if [ "$1" = "remove" ]; then
	for dir in #DIRLIST#; do
		if [ -d "$dir" ]; then
			if [ -f "$dir"/index.theme ] && \
			   which gtk-update-icon-cache >/dev/null 2>&1
			then
				gtk-update-icon-cache --force --quiet "$dir" || true
			else
				rm -f "$dir"/icon-theme.cache
				rmdir -p --ignore-fail-on-non-empty "$dir"
			fi
		fi
	done
fi
