Delete folder error while content opened

with the new version of UiPath windows process.

delete folder it gives me an error if there is a txt o pdf open from the folder to be remove. With legacy does not happends.

i would use a kill but i dont want to close all the txt behind.

the fact is even giving the error its working properly and removing the things inside although no the folder just the files inside and when i use a try catch nothing occurs.

in the image without try catch remove the inside of the folder.

Test.xaml (6.4 KB)

so this should be like in legacy, deleting folder even with files open behind

updating…
i run it again with no open files and again give me same error!!! i did not have nothing open =O also happens with a pdf

i found another way to clean up the folder with deleting files one by one…

updating…
is not working well either, i didnt have anything open and still same error even having kills


Something does, or did, have the file open. UiPath has an issue where sometimes it doesn’t “let go” of files it has accessed.

Before your delete, put these:

image

The second one is WaitForPendingFinalizers

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.