title: AWS Chime SDK: How to leave a meeting
body: <p>I've a React JS App that uses the Chime SDK. I've literally followed the explanation <a href="https://aws.github.io/amazon-chime-sdk-js/modules/apioverview.html" rel="nofollow noreferrer">here</a> and i can successfully hold a meeting with two attendees. My issue is the behaviour when one of the participants leaves the meeting.</p>
  <p>My references are:</p>
  <ul>
  <li><a href="https://aws.github.io/amazon-chime-sdk-js/modules/apioverview.html#4-start-and-stop-the-session" rel="nofollow noreferrer">This link</a> states <em>&quot;To stop the meeting session, call meetingSession.audioVideo.stop().&quot;</em></li>
  <li><a href="https://docs.aws.amazon.com/chime/latest/dg/tearing-down.html" rel="nofollow noreferrer">This link</a> states <em>&quot;You start tearing down a session by calling stop on the AudioVideoFacade .... this.audioVideo.stop();&quot;</em></li>
  </ul>
  <p>When i run <code>meetingSession.audioVideo.stop()</code> the attendee appears to leave the meeting (their audio and video stops) - which makes sense. My issues are:</p>
  <ol>
  <li>Locally, the attendee's audio and video are still showing as active in the browser. How do i release them? I've tried setting the <code>meetingSession</code> object to <code>null</code> but it didn't work</li>
  <li>If i then run <code>meetingSession.audioVideo.start()</code> the attendee rejoins the meeting but with a new Tile ID. Why isn't the same Tile ID used if the Attendee is the same?</li>
  </ol>
  <p>Overall it seems my issues all relate to being unclear how to leave a meeting and a) be removed from the meeting roster and b) release objects locally in the browser.</p>
  <p>Thanks in advance</p>