code: def reset():
      
      shutil.rmtree(session['img_input_dir'])
      shutil.rmtree(session['img_output_dir'])
      session.clear()
      return jsonify(ok='true')
docs: Delete the session and clear temporary directories