How do I remove/unlink wildcarded files

Emil Oppeln-Bronikowski emil at
Fri Jan 2 09:52:38 CET 2015

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

You could try glob[1] and then iterate over collected list (it also 
gives you a chance to handle errors like unreadable/not owned by you files).



Emil Oppeln-Bronikowski *|*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fusetiny.png
Type: image/png
Size: 2504 bytes
Desc: not available
URL: <>

More information about the Python-list mailing list