# Dispose Match/Room

**URL:** <https://forum.heroiclabs.com/t/dispose-match-room/149>\
**Category:** Local Setup\
**Created:** [August 22, 2019, 10:08am UTC](https://forum.heroiclabs.com/t/dispose-match-room/149 "2019-08-22T10:08:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![HashtagGo](https://avatars.discourse-cdn.com/v4/letter/h/dec6dc/32.png) [@HashtagGo](https://forum.heroiclabs.com/u/HashtagGo)\
**Post date:** [August 22, 2019, 10:08am UTC](https://forum.heroiclabs.com/t/dispose-match-room/149/1 "2019-08-22T10:08:01Z")

</div>

how to Dispose match Manually ?  
I have room of 5 Players when last players leave want to Dispose room Manually .Nakama also dispose match , but in some cases last player can send the leave request

---

<div class="post-metadata">

**Author:** ![mofirouz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/mofirouz/32/1523_2.png) [@mofirouz](https://forum.heroiclabs.com/u/mofirouz)\
**Post date:** [August 22, 2019, 11:34am UTC](https://forum.heroiclabs.com/t/dispose-match-room/149/2 "2019-08-22T11:34:07Z")

</div>

Please give the authoritative multiplayer matches a good read:

[https://heroiclabs.com/docs/gameplay-multiplayer-server-multiplayer/#host-node](https://heroiclabs.com/docs/gameplay-multiplayer-server-multiplayer/#host-node)

At the end of the section it reads:

> This match handler above does not do any work but demonstrates the various hooks into the authoritative realtime engine. If `nil` is returned the match is stopped.

You can return `nil` on MatchJoin, MatchLeave, and MatchLoop as the value of the `state` object - and this signals to Nakama to stop the match.
