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 (/).
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot