### Description ``` ❯❯ ~/proj/bencode-py (master ~1) task meson task: [meson] rm build -rf task: Failed to run task "meson": coreutils: remove C:\Users\Trim21\proj\bencode-py\build: The directory is not empty. ❯❯ ~/proj/bencode-py (master ~1) task meson task: [meson] rm build -r -f task: Failed to run task "meson": coreutils: remove C:\Users\Trim21\proj\bencode-py\build: The directory is not empty. ❯❯ ~/proj/bencode-py (master ~1) rm .\build -Recurse -Force ❯❯ ~/proj/bencode-py (master ~1) task meson task: [meson] rm build -r -f task: Failed to run task "meson": coreutils: remove C:\Users\Trim21\proj\bencode-py\build: The system cannot find the file specified. ``` ### Version 3.48.0 ### Operating system windows ### Experiments Enabled _No response_ ### Example Taskfile ```YAML version: 3 tasks: meson: - rm build -rf ```
Activity
[-]them `rm ... -rf` will always fail on windows[/-][+]the `rm ... -rf` will always fail on windows[/+]trulede commentedon Feb 22, 2026
Duplicate of #2506 ? Not sure if the fix for that is in the latest release of Task.
trim21 commentedon Feb 22, 2026
reproducable in latest nightly release
trulede commentedon Feb 22, 2026
The fix is in a dependency, so it depends if that is also updated.
trim21 commentedon Feb 22, 2026
It's 16 hours again so I think it's included? https://github.com/go-task/task/releases/tag/nightly
trim21 commentedon Feb 22, 2026
Even this is fixed, there is another case that it should not throw a error
trulede commentedon Mar 22, 2026
The command should be:
rm -rf buildCan you please try it.
trim21 commentedon Mar 22, 2026
I don't quiet understand, do we only support BSD style flag but not GNU style flags?
trulede commentedon Apr 13, 2026
The problem is where you placed the "build".
NAME
rm - remove files or directories
SYNOPSIS
rm [OPTION]... [FILE]...