Help with a schedule script

Help with a schedule script

I need my custom schedule to wipe all records.

I am using zoho to act as data entry frontend for an old database. I've figured out how to get it to send a CVS file on a schedule but now I'm confused as to how to get it to wipe all records. It's important that the system wipe records after it sends the email.