Delete file - error
AnsweredHi,
Does anyone know why I keep getting errors when I try to delete files in Foxtrot. "Action - Delete File"... This is happening to me in all the scripts where I use this action. It is starting to annoy me. Of course I just have all scripts start by deleting the files it should have deleted last time it was running, but it annoys me, that I cannot "clean up" my folders before a script finishes rather than after it is starting fresh.

If I try to delete it manually it will tell me that the file is used by Foxtrot..

-
Hi Ghita,
It's likely because Foxtrot or another program are using (has a connection) to the file, when the delete file action is being run. Does the action keep on failing or are you able to play the action shortly after successfully? Depending on how the script/logic is built – there are a couple of ways to make sure we can run the action, typically by inserting a short wait before the delete action and/or killing the connection/process to the file before deleting it. One could maybe build a loop around it and keep trying to delete until it succeeds. But it depends on the process and how it is used.
I would probably need to see the script and the order of actions to be able to provide a more specific answer/suggestion to why it fails in your case. Establish why Foxtrot has this connection to the file. Could you send it here or to our mailbox Robotics@basico.dk - then I can take a look if you are interested?
Please sign in to leave a comment.
Comments
1 comment