Ugh... yeah. It worked if I called the deletion method by itself. Which means that the MainMethod must be locking up the file somewhere. More digging to do.