title: Remove a file forcefuly as in "rm -f" or unlink a filepath from directory forcefully
body: <p>I have my code as follows - </p>
  
  <pre><code>#!/usr/bin/env python
  import time, glob, os, sys
  from datetime import date, timedelta
  
  try:
      dpath = sys.argv[1]+"/"
  except:
      print "usage: " + sys.argv[0] +" &lt;dir_path_to_purge_files&gt;"
      sys.exit(1)
  print dpath
  day_minus_mtime = time.mktime(date.today().timetuple())
  g = glob.glob(dpath+"*")
  for f in g:
          try:
                  if day_minus_mtime &gt; os.path.getmtime(f):
                          os.remove(f)
                          print "Removed: "+f
          except OSError, e:
                  print "Not able to Remove: "+f , e
  </code></pre>
  
  <p>I believe that os.remove(file) is equivalent to "rm file" in linux.</p>
  
  <p>I would like to know the equivalent function for "rm -f file". Forcefully remove a file or Forcefully unlink the file path from directory.</p>
  
  <p>Also the above code is trying to purge files older than today. 
  I have a situation where the files are not deleted as it is "write-protected" due to the ownership. But when I use "rm -f" to the same file; it is getting deleted.</p>
  
  <blockquote>
    <p>I think it is better to ask a question, even though it sounds stupid
    to yourselves</p>
  </blockquote>