I managed to install and set up nextcloud snap on my ubuntu server a couple months ago. I haven’t used it since and now I tried to log in to it but I forgot the username and password. I tried uninstalling and reinstalling the snap to reset the data but i couldn’t access the web page. I couldn’t find anything online. Any suggestions?
Did you try
sudo snap remove --purge nextcloud
This will remove the data directory of Nextcloud. Alternatively you can check where snapd is creating this directory and remove it manually.
If you also have entered your email in Nextcloud you can try to reset your password over the mail. https://docs.nextcloud.com/server/latest/admin_manual/configuration_user/reset_admin_password.html#:~:text=Click the password reset link,to reset it for you.