linux delete all files with extension in subfolders 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]
find . -name "*.bak" -type f -delete
import os
os.path.splitext(current)[0]