Delete all share from a user


Do exist a way in order to delete all share from a user?
occ or other...


All share or all files?


all share...
that is, I have 3 users: admin, user1 and user2.

admin share 3 files with user1 and user2.

I would delete all share from user1, so user1 don't see the 3 admin's files but user2 see the 3 admin's files.


You can just unshare the 3 Files in the Share dialog in the web UI of ownCloud.

Just click on the trashbin icon.


I kwon, but the files are not 3, but 1000... do an API exist?


Yes, there is the OCS Share API, see

The documentation comes with examples as well.