Uninstall app from terminal?

Hello, there was an error when I installed kiwix, and attempting to even view the app page from /plinth/apps/kiwix/ results in a 500 error. Is there a way I can trigger an app removal from the terminal when the GUI is unavailable?

I can post the error if that helps, but I don’t think it will. Its just referencing not being able to find files. I believe when something failed part way, some files weren’t created so when it tries to view the app page it errors out, so just the symptom and not the cause. TBH, if that fails uninstalling may fail too… Still, if anyone knows that would help a lot.

Oh its totally buggered, I can’t install or uninstall any other apps now. I just set it up yesterday, so I’ll just set it up fresh again.

You can do:

systemctl disable --now kiwix-freedombox.service. This will disable the app and possibly allow you to uninstall/re-run setup from the web interface.

Otherwise, you can mark the app as uninstalled (but not actually uninstall it) as follows. This will allow attempting app install again:

sudo apt install -y sqlite3
echo 'DELETE FROM plinth_module WHERE name="kiwix";' | sudo sqlite3 /var/lib/plinth/plinth.sqlite3

Please see if you can post the logs of original problem so we can debug it. Also, any log of install/uninstall failure will help understand that problem as well.