code: def destroyTempDir(self, tempDir):
          
          #Do basic assertions for goodness of the function
          assert os.path.isdir(tempDir)
          assert os.path.commonprefix((self.rootDir, tempDir)) == self.rootDir #Checks file is part of tree
          #Update stats.
          self.tempFilesDestroyed += 1
          #Do the actual removal
          try:
              os.rmdir(tempDir)
          except OSError:
              shutil.rmtree(tempDir)
              #system("rm -rf %s" % tempDir)
          self.__destroyFile(tempDir)
docs: Removes a temporary directory in the temp file dir, checking its in the temp file tree.
          The dir will be removed regardless of if it is empty.