delete all files certain extension in linux recursively code example Example: rm files with extension find . -name "*.bak" -type f -delete