Create function to delete a contact

Create function to delete a contact

Hello,

We are receiving many spam contacts via website forms integrated with ZOHO CRM. Therefore we want to create a workflow that based in some conditions, the contact is automatically deleted.

I have set up a workflow rule with some conditions, but I need the code for the function to automatically remove the contact.

Thanks for your help.
Best regards,