Remove Tags via Custom Function

Remove Tags via Custom Function

Hey Guys,

How do I remove tags via custom function? I can't find the API name for Tags in the Deals module.

I know there is a workflow to remove tags but it forces me to choose the tags that needs to be removed. If my agent creates a new tag, it won't be included in the workflow.

I think the better way is to write a custom function to remove tags once a Deal reaches a particular stage.

Any custom function to do this? Thanks in advance!