I have a user associated with a territory who has left organisation.
Now I wish to remove the mapping association for this user.
Removing this user from Territory assigned users page does not solve my purpose. But when checked from workbench, the association still exists.
As per the document:
I need to use a getDeleted() call to delete a user from a territory (not simply removed from the territory)
Can you please assist a sample code for this.