Delete all share from a user


#1

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


#2

All share or all files?


#3

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.
thanks


#4

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

Just click on the trashbin icon.


#5

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


#6

Yes, there is the OCS Share API, see https://doc.owncloud.org/server/10.0/developer_manual/core/ocs-share-api.html#delete-a-share

The documentation comes with examples as well.