Clearing/removing values from subform in Zoho CRM

Clearing/removing values from subform in Zoho CRM

Hello, 

I am using a function that copies/clones an existing invoice and sets a few new parameter. I did this and it works perfectly. I.e.: 

  1. invinfo.remove("Payment_History");
  2. invinfo.remove("Created_By");
  3. invinfo.remove("Modified_By");
  4. invinfo.remove("Modified_Time");

I also want to remove ALL rows/values from a subform but I do not know how to do that. The subforms name is "Subform_Invoice_Details" and the fields in this subform are "Invoice_Number" (a lookup field) and "Invoice_Name" (a regular input field).

How can I do that?

Thanks for help, 
M.