os.remove (Python) Please! Bitte!

07/04/2013 12:14 krzysieks144#1
EN:
Hello, please help.
How to use functions:

if os.path.exists ("files.py"):
os.remove ("files.py")

To me not only removed the name.
I want to feature not only checked the file name's extension. I removed the following enlargement. Thank you.

DE:
Hallo, bitte helfen.
So verwenden Sie Funktionen:

if os.path.exists ("files.py"):
os.remove ("files.py")

Für mich ist nicht nur der Name entfernt.
Ich möchte nicht nur überprüft die Datei Namenserweiterung verfügen. Ich entfernte die nach der Erweiterung. Vielen Dank.
07/04/2013 13:42 Mashkin#2
Do you mean that you want to remove all files ending with .py?
Then do it like explained in this SO answer: [Only registered and activated users can see links. Click Here To Register...]

Google will help you a lot when having programming/scripting related problems. This topic is not necessarily related to Metin2.

Edit: Please, don't try to translate your question to German with some translation tool like Google. Stick with English instead.