#!/bin/sh

# 卸载db文件 remove、purge、upgrade
DB_FILE=".local/share/kylin-ai-vector-engine/kylin-ai-vector-engine.db"
if [ "$1" = "purge" ]; then
    for i in $(ls /home) ; do
        if [ -f "/home/$i/$DB_FILE" ]; then
            echo "Delete /home/$i/$DB_FILE"
            rm "/home/$i/$DB_FILE"
        fi
    done
fi
