The delete records Deluge task is used to delete existing records from a form, based on the specified criteria.
delete from FormName[ Criteria ];
<formname> - name of the form to delete records <criteria> - The criteria expression/value based on which the records will be deleted.
The sample code given below deletes all records in the Sample Form whose Email is same as the Email id added to the Contact form.
delete from Sample[ Email_id == input.Email_id ];