::
Computers & Technology
How to delete specific type of files from folders and sub folders
SpiderTip
Posted: 2020-07-13
Deleting specific type of files recursively
Deleting a specific type of files with known extension recursively is an easy process using the Windows command prompt. For example, the command below will find all the zip files or all the files with zip extension on D drive and delete them.
del /s d:\*.zip
Another example bellow will delete all the pictures with .jpg extension from your downloads folder and subfolders recursively.
del /s %userprofile%\Downloads\*.jpg
This example will delete all pictures with a jpg extension from your documents folder and subfolders recursively.
del /s %userprofile%\documents\*.jpg