I want to delete the files which are in a particular folder using PowerShell commands, but when I use Remove-Item $DownloadFilePath* -recurs (where $DownloadFilePath carries the path of the folder) to delete files then it deletes the folder itself and the files which are in its parent folder.
Please let me know the solution to just delete files inside the folder.
Add a comment
|