How can perform a bulk record deletion in a zoho creator app?

How can perform a bulk record deletion in a zoho creator app?

Hello, 
I am Developing a solution and i am trying to create a function that will delete all records in all forms in the application.
here is what i've been able to come up with:

  1. string AppConfig.clearAllAppData()
  2. {
  3. /**********************************Log variable declaration**************************************/
  4. fullLog = "";
  5. name = "";
  6. recCounts = "";
  7. deleted = false ;
  8. /**********************************END-Log variable declaration**************************************/
  9. /*************************CONST VARIABLES*********************************/
  10. format = "xml";
  11. applicationName = zoho.appname;
  12. appuri = zoho.appuri;
  13. authToken = "3bd****************************8b";
  14. /*************************END-CONST VARIABLES*********************************/
  15. /*************************OBJECT TO BE PASSED HTML GET FUNCTION*****************************/
  16. endPoint = "https://creator.zoho.com/api/"+format+"/"+applicationName+"/forms";
  17. params = Map();
  18. params.put("authtoken", authToken);
  19. params.put("scope", "creatorapi");
  20. params.put("zc_ownername", zoho.adminuser);
  21. /*************************END-OBJECT TO BE PASSED HTML GET FUNCTION*****************************/
  22. appForms = invokeUrl
  23. [
  24. url : endPoint
  25. type : GET
  26. parameters : params
  27. ];
  28. formsCount = appForms.executeXPath("response/application[@name='chservicesalesmgt1-ide']/formlist/formcount/text()");
  29. formLinkNames = appForms.executeXPath("response/application[@name='chservicesalesmgt1-ide']/formlist/form/componentname/text()");
  30. formLinkNamesList = formLinkNames.toList("-|-");
  31. for each _form in formLinkNamesList
  32.     {
  33. delete from _form [ ID != null ];
  34. // if ( _form[ID != null].count() == 0 ) 
  35. //         {
  36. // fullLog = fullLog + ", "+form ;
  37. // delete from _form [ ID != null ];
  38. //         }
  39.     }

  40. return "Application data has been deleted successfully";
  41. }

however, it seem i cannot reference form link name through the variable "_form" that holds the form_link_name.

here is the error i get when i try to save it:


Here is error when trying to save the code
Can anyone please suggest a work around to it for me?

Thanks!