I want to delete the whole Nextcloud-directory on a webserver via SSH. What I tried was a simple rm -r nextcloud-directory.
I always get error messages like that:
rm: cannot unlink `web/data/updater-oc0mnat8e2sm/backups/nextcloud-22.214.171.124/cron.php’: Permission denied
The permissions are always denied, so I tried to set it to 777 what is getting refused. Even if I try to set my username as the owner I don’t have matching permissions to change the ownership.
Where is my mistake?
Thank you very much for your help!
With best regards!