30 December 2018

Replase ‘ext’ with the extension of the files to be deleted.

find . -type f -name '*.ext' -delete