Delete File The specified path, file name, or both are too long

Good day,

I have create a process to delete files that is saved on a server. There are thousands of specific files that needs to be deleted and the sub folders are different. I am getting the following error:

Delete File: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

Mapping a part will not work as the full path for each file is different from a top folder level

@martin.park

It’s the not the issue with UiPath
It’s a limitation from Windows to have the FilePath or FileName
better you shorten your path and the file name else you may have to depend of the third party tools

https://longpathtool.com/LongPathToolWindows10.html

Hope this may help you

Thanks,
Srini