{"id":12731,"date":"2022-10-13T16:42:08","date_gmt":"2022-10-13T20:42:08","guid":{"rendered":"http:\/\/local.brightwhiz\/?post_type=snippets&p=12731"},"modified":"2022-10-13T16:42:11","modified_gmt":"2022-10-13T20:42:11","slug":"recursively-delete-all-files-by-extension-file-type-command","status":"publish","type":"snippets","link":"http:\/\/local.brightwhiz\/snippets\/recursively-delete-all-files-by-extension-file-type-command\/","title":{"rendered":"Recursively Delete all Files by Extension (File Type) Command"},"content":{"rendered":"\n
Use this to recursively delete all files with a specific extension (file type) in the current directory and sub-directories.<\/p>\n\n\n\n
$ find . -name "*.ext" -type f -delete<\/code><\/pre>\n\n\n\nUse this command to do a dry run by listing all the files.<\/p>\n\n\n\n
$ find . -name "*.ext" -type f<\/code><\/pre>\n","protected":false},"comment_status":"open","ping_status":"closed","template":"","meta":[],"categories":[953,23,15,16],"tags":[121,183,193,354,449,573,598],"yoast_head":"\nRecursively Delete all Files by Extension (File Type) [Snippet]<\/title>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\n