Powershell remove-item not working

powershell

Solution

I had the same issue, i used the following to fix it:

dir E:\Music -File -Exclude *.mp3 -Recurse | Remove-Item

Problem

Why is ``` dir E:\Music -File -Exclude *.mp3 -Recurse | foreach {del $_.FullName} ``` not working? I tested all the possibilities I could think of and it is still not working. Thanks in advance.

Original source