PowerShell: DEL command to delete files in subfolder

I have huge folder and inside it I have a lot of sub folder inside subfolder and I wrote this Command for deleting files in subfolder and I want to do the same thing with an script PowerShell.

For example:

del /F /S /Q "C:\QQQ\*.RAW"

click here to see the image

1 Answer

get-childitem -path C:\QQQ -include *.raw -recurse | remove-item

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like