Deleting files in folder with python
<p>I have one folder with one geodatabase and two other files (txt). I used zip and zipped them. So now in this folder i have gdb, txt,txt, and new zip file. Now I need to delete those files that were zipped, so that will be only zip file in the folder. 
I wrote the following code:</p>

<pre><code>def remove_files():
   for l in os.listdir(DestPath):
      if l.find('zipped.zip') &gt; -1:
         pass
      else:
           print ('Deleting ' + l)
           os.remove(l)
</code></pre>

<p>But got:</p>

<pre><code>Error Info: 
[Error 2] The system cannot find the file specified: 'geogeo.gdb'
</code></pre>

<p>Can anyone help me?
Thank you in advance.</p>
