How to remove a team via REST API?

Hi everyone.

I'm trying to remove a team via the Rest API but am having problems with doing so. As far as I can tell the "correct" endpoint would be https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_12.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameremote_id_DELETE/.

However when trying the following:

URL/.../3b029990-4ed8-11ed-8fd3-00163ef40625

I'm getting 500 error with the logs showing:
PHP Recoverable fatal error:  Object of class Team could not be converted to string in /modules/Teams/TeamSetLink.php on line 294

Has anyone been able to remove teams via this API or could share any thoughts? I noticed the documenation around ACL roles and team_sets isn't great for the Rest API so  any help would be great.


Thanks,


Daniel