14,954
edits
| Line 118: | Line 118: | ||
** {{Gd}} quick for many small files (1) create a empty folder ex: {{kbd | key=<nowiki>mkdit /path/to/source</nowiki>}} (2) To empty the target folder, keyin {{kbd | key=<nowiki>rsync -avP --delete /path/to/source/ /path/to/target/</nowiki>}} ({{Linux}}) | ** {{Gd}} quick for many small files (1) create a empty folder ex: {{kbd | key=<nowiki>mkdit /path/to/source</nowiki>}} (2) To empty the target folder, keyin {{kbd | key=<nowiki>rsync -avP --delete /path/to/source/ /path/to/target/</nowiki>}} ({{Linux}}) | ||
** {{kbd | key=<nowiki>rsync --delete-before -a -H -v --progress --stats /path/to/empty/folder/ /path/to/target_folder_will_be_deleted/</nowiki>}} ({{Linux}})<ref>[http://blog.sina.com.cn/s/blog_5f5a3dff0101e2tm.html Linux下使用rsync最快速删除海量文件的方法_果冻的剥壳_新浪博客]</ref> ''un-verified'' | ** {{kbd | key=<nowiki>rsync --delete-before -a -H -v --progress --stats /path/to/empty/folder/ /path/to/target_folder_will_be_deleted/</nowiki>}} ({{Linux}})<ref>[http://blog.sina.com.cn/s/blog_5f5a3dff0101e2tm.html Linux下使用rsync最快速删除海量文件的方法_果冻的剥壳_新浪博客]</ref> ''un-verified'' | ||
* | * Using SFTP/FTP to connection to the server and delete selected files. {{exclaim}} It may costs too much time if there are many files or sub folders! | ||
Delete the files which their file name were matched with the ''naming rule'' when the number of files is too many. | Delete the files which their file name were matched with the ''naming rule'' when the number of files is too many. | ||