how to erase folder that match characters in linux

C++
find . -type d -name 'received_*_output' -exec rm -r {} +

Source

Also in C++: