How to reset room or remove room

The whole answer can be found below.

Please note: The Photon forum is closed permanently. After many dedicated years of service we have made the decision to retire our forum and switch to read-only: we've saved the best to last! And we offer you support through these channels:

Try Our
Documentation

Please check if you can find an answer in our extensive documentation on PUN.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Read More on
Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

How to reset room or remove room

nesvn030
2019-06-26 06:37:49

when i try create room but photon return error code: 32766
Photon list room can't exist the name , I sent to created room
How to I can't reset or delete, remove the room.

Comments

JohnTube
2019-06-26 10:24:53

Hi @nesvn030,

Thank you for choosing Photon!

There is no way to remove rooms from the client side.
Rooms are automatically removed from Photon servers after they remain empty for EmptyRoomTTL milliseconds.

If you want a room to be removed, close it so no one will join it then send a custom event to all clients to leave it for good.

You can use JoinOrCreateRoom to try to join it if it exists and create it if not.

Back to top