I’m trying to delete an excel file if exists. The error that I’m encountering is if it is already open, it is “in use by another process”, so can’t delete it.
What is the proper way to try to delete it if it exists, and if there’s a IO error, then close it or shut down Excel and try to delete the file again?
Hey @Terry_Marr
Please check this topic but basically you can place that ‘kill process’ activity right before the activity where you are trying to access that file.