def removeBackupFilesByType(fileType):
 backupFilePaths = getFilesWithFileTypesWithoutWordsRecursively([(fileType + '~')])
 for backupFilePath in backupFilePaths:
  os.remove(backupFilePath)

def removeBackupFilesByType ( fileType ) : backupFilePaths = getFilesWithFileTypesWithoutWordsRecursively ( [ ( fileType + '~' ) ] ) for backupFilePath in backupFilePaths : os . remove ( backupFilePath )
remove backup files by type .