How to remove apps from the terminal

I install some new apps from the nextcloud store. I would like to know how I can remover the software using the terminal. One of the apps that I downloaded, has caused an issue with opening nextcloud from form the web. I can ssh to the Ubuntu 19.04 server but I can open my nextcloud web page. I get a blank page of my nextcloud instances. From what I getting so far is that I need to uninstall apps from the occ consoul. What directory can I find occ and can some share with me the link to get there.

Find the relevant part of the documentation for Nextcloud 15 here: https://docs.nextcloud.com/server/15/admin_manual/configuration_server/occ_command.html#apps-commands

The occ console is located in the Nextcloud directory, so you need to change to that directory first before issuing the command to disable the app (change capital letters to fit your needs):

cd /PATH/TO/NEXTCLOUD
sudo -u www-data php occ app:disable NAME_OF_APP

If you don‘t know the name of the app, you can list all apps with:

sudo -u www-data php occ app:list
2 Likes