parameters: (dir)
docstring: Recursively deletes a directory and its contents.
docstring_summary: Recursively deletes a directory and its contents.
docstring_tokens: Recursively deletes a directory and its contents .
function: def delete_directory(dir):
      '''Recursively deletes a directory and its contents.
      '''
      try:
          shutil.rmtree(dir)
      except Exception:
          pass
function_tokens: def delete_directory ( dir ) : try : shutil . rmtree ( dir ) except Exception : pass