debian delete all files of type in directory code example Example: rm files with extension find . -name "*.bak" -type f -delete