class_docstr: Driver for fetching credentials that are saved locally on the filesystem.
class_docstr_tok: ["Driver","for","fetching","credentials","that","are","saved","locally","on","the","filesystem","."]
docstr: Removes the local secrets directory that may be left from previous runs
docstr_tok: ["Removes","the","local","secrets","directory","that","may","be","left","from","previous","runs"]
code: def clear():
      """Removes the local secrets directory that may be left from previous runs"""
      secrets_dirtemp_dir = (
          LocalFileDriver.get_local_credentials_temp_dir()
      )
  
      # Check if the folder exists, and remove it if it does
      if os.path.isdir(secrets_dirtemp_dir):
          shutil.rmtree(secrets_dirtemp_dir)
  
imports: import json
  import os
  import shutil
  import tempfile
  from abc import abstractmethod
  from botocore.exceptions import ClientError
  from streamalert.shared.helpers.aws_api_client import AwsKms, AwsSsm
  from streamalert.shared.logger import get_logger
label_desc: Use image node_id 5 for calling the LocalFileDriver obj's underlying member method code with example usage: obj.clear() without return types