delete the complete folder recursively linux code example
Example 1: how to delete particular type file recursively in linux
find . -type f -name '*.o' -delete
Example 2: remove directory linux
rm -rf /path/to/directory/*
find . -type f -name '*.o' -delete
rm -rf /path/to/directory/*