code: def rmdir(path, recursive=True, **kwargs):
      
      if recursive:
          import shutil
          return shutil.rmtree(path, **kwargs)
      else:
          import os
          return os.remdir(path, **kwargs)
docs: Remove the directory *path*