import os
for dirpath, dirs, files in os.walk('.'):
    for file in files:
        path = os.path.join(dirpath, file)
if os.stat(path).st_size == target_size:
    pass
deleting all the file of certain size