delete all the fiels of certain extension bash code example
Example 1: rm files with extension
find . -name "*.bak" -type f -delete
Example 2: Remove file extension from file within dir Ask Question
import os
os.path.splitext(current)[0]
Example 3: linux remove all files same extension in directory
find . -type f -iname \*.zip -delete