Help Center/ CodeArts Deploy/ FAQs/ Custom Application Actions/ Deleting a File/ Incorrect File Path on a Windows Host
Updated on 2023-07-20 GMT+08:00

Incorrect File Path on a Windows Host

Symptoms

When the action Delete Files is run on a Windows host, the error message "stderr": "Remove-Item : A positional parameter cannot be found that accepts argument 'est\r\n1'. is displayed.

Cause Analysis

Ansible is used when deleting a file. The Windows path incorrectly contains a backslash (\) instead of a forward slash (/).

Solution

Check whether the file path is correct. If the file path is a Windows path, ensure that the path contains forward slashes (/).