Can't you just delete the file? Â Go to it on the filebrowser, long select on it then chose delete. Â Sure, it is a couple more button presses but perfectly doable, and all a choice like you are suggesting would be to delete it for you, with the disadvantage of complicating the code + increasing code size for not much benefit that I can see. Â Unless you record for less than the buffer size it will always unavoidably be written during recording.
As a note, not only do you not say which OF, but what the OF does is irelevent to us. If it is a good idea then we will of course welcome its inclusion.