I took a quick look at the code, and I think your original solution to delete the file may be the better choice. There is still a lot of code that isn't defined and probably compiled in by a 'use' statement.
Can you test the script in a non-destructive way?
Usually on PM we try to give hints rather than working code. In your case, it sounds like production code that you want to modify. I strongly suggest you set-up a 'sand box' (testing environment) before you modify production code. If I'm misunderstanding your problem, please correct me.
Thank you
"Well done is better than well said." - Benjamin Franklin
In reply to Re^3: Correct code for deleting old file?
by flexvault
in thread Correct code for deleting old file?
by markuswinter
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |