cc

Delete all files with a given extension recursively

Written
Topics

Windows CLI one liner:

FOR /R "c:\path\to\directory" %I IN (*.gz) DO del "%I"

Just iterates recursively over the given directory, and in this case just the .gz files, and deletes them.

More like this