for root, _, files in os.walk(dirtocheck):
    for f in files:
        fullpath = os.path.join(root, f)
if os.path.getsize(fullpath) < 200 * 1024:
    os.remove(fullpath)
Python script to loop through all files in directory, delete any that are less than 200 kB in size