Delete File - Access denied

Hi all,

Has anyone come across the issue where a file won’t delete from a folder? I am downloading a zip file from the web and when I am done I am trying to get the bot to delete the file. If I use the delete activity with the exact path nothing happens and if I use a directory.getfiles(path) within a foreach and get a list of files (which works) I am getting an access denied.

It is like the bot is still using the zip file and prevents it from deleting. I also tried everything manually and it works. Thanks

Kindly have a view on this thread

Cheers @Cormac

1 Like

I seem to be missing an activity. Is there anyway to find out what package this belongs to?

image

1 Like

In output panel we can see which activity package is missing
And search for the same in ALL tab in manage packages option in Design tab of studio
Cheers @Cormac

1 Like

Thanks for the response @Palaniyappan.

I am still getting the error even using the activity you suggested. It is giving me an access denied error when I try to delete the file and I have to stop the bot and close the browser (with the site I am working from) in order to delete the file manually. Have you come across this before?