Currently, there are 99 folders under the folder D:\clu_1, the name is 0,1....99, there are 25 folders under each folder, and the folder name is 0,1,.... 24, under which there is a folder named after the date (such as 20140521), and finally the zip file. such as a zip file path d:\clu_1\88\23\20140521\Raw_0432.zip.
These files already occupy 7 T, and now you need to delete some files, there are 2 ways:
1, by the time only delete the innermost zip file, such as delete 20140608 before the file (including 20140608), the command is as follows:
forfiles/p d:\clu_1/s/M *.zip/d -2014/06/08/c "cmd/c del/q/S @path"
Disadvantage This command does not delete the directory
2, delete by directory name, such as delete May folder and all the files under it
FOR/R d:\clu_1/d%i in (201405*) do rmdir/q/s%i
Delete folders that start with 201405, that is, delete data from May, as follows:
FOR/R d:\clu_1/d%i in (20140608*) do rmdir/q/s%i
Delete the data from the beginning of the 20140608 folder, that is, June 8;
Note: If you have a lot of folders, you will not see a response for a while after you enter the command.