How do I remove/unlink wildcarded files

Anthony Papillion anthony at
Fri Jan 2 00:13:31 CET 2015

Hi Everyone,

I have a function I'm writing to delete wildcarded files in a directory.
I tried this:

def unlinkFiles():

This doesn't seem to work because it's a wildcard filename. What is the
proper way to delete files using wildcards?


Anthony Papillion

Phone:       1.918.631.7331
XMPP Chat:   cypher at
Fingerprint: 65EF73EC 8B57F6B1 8C475BD4 426088AC FE21B251
iNum:        +883510001190960
PGP Key:

More information about the Python-list mailing list