title: Django delete files from a directory not working
body: <p>The following is my file deletion code:</p>
  <pre><code>path = settings.MEDIA_ROOT
  os.remove(os.path.join(path, file_name))
  </code></pre>
  <p>When run I get the following HTTP 500 error:</p>
  <blockquote>
  <p>WindowsError at /project/delete_files/</p>
  <p>[Error 2] The system cannot find the file specified: u'C:\DjangoEmt/static/uploads/bridge.jpg'</p>
  </blockquote>
  <p>I have checked the file exists in the directory. Can someone please help me as to why its not working.</p>
  <p>Sidenote: I am using ajax in django if this makes any difference.</p>