I'm new using the API. I wonder what's the best way to revoke shared links. I want to only allow sharing within my organization.
My first idea is for each user to check every shared file and their properties.
Regards
To revoke a shared link, you can use the /2/sharing/revoke_shared_link:
https://www.dropbox.com/developers/documentation/http/documentation#sharing-revoke_shared_link
Depending on your exact goal, you can also do other things like modify the policy on existing links, using /2/sharing/modify_shared_link_settings:
https://www.dropbox.com/developers/documentation/http/documentation#sharing-modify_shared_link_settings
For example, for Business accounts, you can set the settings.requested_visibility to team_only, to restrict that link to members of the same team only.