<filename>pictureRemover.py
#!/usr/bin/python

import glob
import os
retirar = "foo.bar"

list = glob.glob("/YourPathHere/*" + remove)

for item in list:
    os.remove(item)

<filename>pictureRemover.py
#!/usr/bin/python

import glob
import os
retirar = "foo.bar"

list = glob.glob("/YourPathHere/*" + remove)

for item in list:
    os.remove(item)

#!/usr/bin/python