Rsync from a nextcloud folder

I need to rsync with a Nextcloud folder. The access should be limited to this folder only. Goal is to Download all files and remove all files inside.

Is it possible to use sharing a directory for that? If so what is the DAV URL and the needed Username?

You can’t use rsync for that, I mean you could rsync (via SSH) directly to the respective folder on the server, but then you would have too “occ files:scan” the files in order for Nextcloud to recognize them, or you could rsync to a WebDAV mount, but I’d say it would probably be easier to use Rclone: https://rclone.org/webdav/

Not a 100% sure, but afaik no.