I am having difficulty identifying the problem below. I am trying to loop to delete files in a folder using sharepoint actions, but the delete files action is returning the following error.
I tried directly writing the file path in the action, I tried passing through variables and also using the path obtained by the action of getting files from sharepoint, so far without success. Has anyone ever had this problem?
![](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/6a62499c-a193-4cc6-955f-0ef682945c53.png)
This may be due to the following reason: Illegal character in path at index 137: https://namesubdominio.sharepoint.com/sites/RPA-Team/_api/web/GetFolderByServerRelativeUrl('Documentos%20Partilhados/Teste')/Files('Escalas GMUD.xlsx')
Location: teste_onedrive(line 11)
To continue, edit the bot and fix the error. Then, try again.