import os

yol = os.listdir()

silinecek_satir = 'BU SATIR SİLİNECEK...'

for path in yol:
    if path != 'test.py' and path != 'temp.txt':
        with open(path, 'r', encoding='utf8') as girdi:
            with open('temp.txt', 'a', encoding='utf8') as cikti:
                for line in girdi:
                    line = line.replace(silinecek_satir, '')
                    cikti.write(line)
            cikti.close()
        girdi.close()
        os.replace('temp.txt', path)