Delete subform rows in creator

Delete subform rows in creator

Hi,

I am using a subform for adding rows dynamically.  The insertion will be done only based on the decision field's value.  If it is true, I will show the subform fields for entering.  After enabling, if i make the field as false, the entries in the subform has to be deleted.

So, can anyone please help me to delete the subform data through deluge script.