http://mabufs.i2p/blog/recursively-delete
For example, you need to clear the temporary directory , that is, tmp just run the following command: rm -R /tmp/* Check if the folder has been cleared with the command: ls /tmp Either you need to recursively delete files of the same type. For example, in the folder with ODF and TXT files, you need to delete all TXT files without affecting ODF.