Deleting a table from SDRam


#1

Is there a way to delete a table/file from the SDcard from within a running patch?

I know how to delete files manually using the File Manager.

I am using stored tables for presets, and was thinking to add a function to delete presets that way.

Thanks & Cheers!


#2

If you just want to delete the data from a table try using rbrt/data/tcopy. Put the name of the table in both boxes and make sure 'clear' is on, then when you trigger it it'll clear the table


#3

try this:

http://elm-chan.org/fsw/ff/doc/unlink.html

the fatfs functions are working/included for file opening and writing, so this should work as well


#4

Thanks guys for your help! f_unlink was what I was looking for.
db