docs: def delete_pidfile(rundir, process_type=PROCESS_TYPE, name=None, force=False):
      """
      Delete the pid file in the run directory, using the given process type
      and process name for the filename.
  
      @param force: if errors due to the file not existing should be ignored
      @type  force: bool
  
      @rtype:   str
      @returns: full path to the pid file that was written
      """
      from feat.common.run import get_pidpath
      log.debug(process_type, 'deleting pid file')
      path = get_pidpath(rundir, process_type, name)
      try:
          os.unlink(path)
      except OSError, e:
          if e.errno == errno.ENOENT and force:
              pass
          else:
              raise
      return path