Access Trashbin via Webdav PPROFIND

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
{http://nextcloud.org/ns}trashbin-filename
{http://nextcloud.org/ns}trashbin-original-location
{http://nextcloud.org/ns}trashbin-deletion-time

but i cant figure out how to format the command…
could anyone help out?
Best
Joseph

Hi,

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"?>
<propfind xmlns="DAV:">
  <prop>
    <getlastmodified/>
    <trashbin-filename/>
    <trashbin-original-location/>
    <trashbin-deletion-time/>
  </prop>
</propfind>'
2 Likes

cool thanks! this worked for me!

1 Like