The API "Restore Deleted File" don't work for shared file

If I’m user A and I’ve got a folder X shared from user B and I, user A, delete the folder X, then when I use remote.php/dav/trash-bin// … like Trashbin API the curl responde me:

<?xml version="1.0" encoding="utf-8"?>

<d:error xmlns:d=“DAV:” xmlns:s=“sabre/dav”>
<s:exception>Sabre\DAV\Exception\NotFound</s:exception>
<s:message/>
</d:error>

because the folder X don’t exist into my file system, user A, of the server, it exists into file system of user B.
Can you resolve this incorrect develop?

In my understanding. the trashbin-api is for processing a users own files only.
I assume it’s by design and IMHO fully OK as it is now.

no, the user A haven’t into him folder the file, so when I run the API by A user the owc reply “no found”.
this about me is a mistake.
I work around this problem, run api by B, but I continue to see the file deleted in user A, other mistake about me.