delete any text files found in subdirectories linux code example Example: how to delete particular type file recursively in linux find . -type f -name '*.o' -delete