code: def cleanup(dest, tardir, counterfile):
      
      thefiles = Queue()
      # dest directory files
      queue_files(dest, thefiles)
      # tar directory files
      queue_files(tardir, thefiles)
      while not thefiles.empty():
          d_file = thefiles.get()
          info("Deleting file: %s" % d_file)
          os.unlink(d_file)
      if os.path.exists(counterfile):
          info("Deleting the counter file %s" % counterfile)
          os.unlink(counterfile)
docs: Remove existing rules