remove all .orig files mac terminal

C++
find . -name '*.orig' -delete
Source

Also in C++: