CSV Save Question - overwrite or delete at beginning of macro

Is there a way to overwrite the csv file, rather than append to it? Or, is there a way to delete the existing csv file at the beginning of a macro, so I can save a new file at the end of the macro?

(1) Use use csvSaveArray - this command does not append to an existing CSV file but overwrites it.

(2) OR: Delete the CSV file: You can use XRUN + script to delete the CSV file. This requires to use the hard-drive storage mode.

See here:

1 Like

Thank u! I wasn’t able to get the first option to work, but the second one works perfectly.