Hi. I would like to access the Nextcloud trashbin via PROFIND.
I know how to access the webdav server but didnt manage to access the Trashbin.
So far the nextcloud documentation got me here…
curl -x PROFIND https://myserver/remote.php/dav/trashbin/USER/trash
but i cant figure out how to format the command…
could anyone help out?
It took me a while to figure it out, as the documentation was not very precise, but I eventually got it to work with the following command:
curl -X PROPFIND -H "Depth: 1" -u "USERNAME:PASSWORD" https://cloud.example.com/remote.php/dav/trashbin/USER/trash -d '<?xml version="1.0" encoding="UTF-8"?>
cool thanks! this worked for me!