code: def remove_pid_file(process_name):
      
      pid_filename = get_pid_filename(process_name)
      try:
          os.remove(pid_filename)
          print('Removed pid file at: {0}'.format(pid_filename), file=sys.stdout)
      except Exception as e:
          print('Unable to remove pid file at: {0}, because of: {1}'.format(pid_filename, e),
                file=sys.stderr)
docs: removes pid file