How to uninstall nextcloud from Ubuntu ?

If the nextcloud is installed using snap command, then use the following command to uninstall or remove nextcloud.

sudo snap remove nextcloud