I'm trying to delete a team but I get this error `Can't delete the team (ID: N), most likely because it is referenced by a submission, or an entity is shared with it.` How can I determine all the entities the team is shared with so I can remove the sharing? Is there a way to get this information via the python client or the REST API? Thanks.

Created by Patrick Stout pstout
That was it. Thanks @brucehoff
It looks like [this file](syn21911171) is shared with [this team](https://www.synapse.org/#!Team:3399801). Please remove the team from the file's sharing settings and then try again to delete the team. If you need help changing the sharing settings, contact https://www.synapse.org/#!Profile:3368029 or https://www.synapse.org/#!Profile:3377467.
The team id is: 3399801
Synapse doesn't have a service to look up this information. Does the problem persist? If so, can you share the team ID?

Can't delete team. How to find all entities team is shared on. page is loading…