To remove shared access to a group, you need to delete the share the user is assigned to. First, we recommend to find the user's shares and having the
share_id you can delete the share.
To find all your organization shares, execute this request:
Look for you user's email in the
user object of each share and the group the user is assigned to in that share, and then copy the
id of the share you want to remove.
The API call for deleting the share looks as follows: