remove files recursively linux code example
Example 1: rm files with extension
find . -name "*.bak" -type f -delete
Example 2: how to delete particular type file recursively in linux
find . -type f -name '*.o' -delete
find . -name "*.bak" -type f -delete
find . -type f -name '*.o' -delete