code: def remove_tmp_dir(self, directory):
          
          if(not directory.startswith('/tmp/')):
              print('Directory not in /tmp')
              exit()
  
          print('Deleting directory: ' + directory)
  
          shutil.rmtree(directory)
docs: Remove the directory if it is located in /tmp