- Open terminal
- Type the command
find /{path}/ -type f -name "*.{extension}" -delete
{extension} file extension that you want to delete
Example:
Delete all MPG files from /home/luizcgjr and its subfolders
find /home/luizcgjr/ -type f -name "*.mpg" -delete
Source: http://unix.stackexchange.com/questions/42020/how-can-i-delete-all-files-with-a-particular-extension-in-a-particular-folder
No comments:
Post a Comment