Does janus-gateway automatically destroy dynamically created rooms?

Read through the VideoRoom plugin documentation and couldn’t find the answer…

I’m creating an application where users would use a disposable room (VideoRoom plugin). i.e. I dynamically create a room for a user to use, and once the user is done, the room is no longer needed and can be disposed of.

In VideoRoom plugin, if I create a dynamic room like this:

{
        "request" : "create",
        "permanent" : false,
        "secret" : "<password>",
        "pin" : "<pin>"
}

Does janus-gateway automatically release/destroy it from memory at some point, or do I need to explicitly remove it by issuing a destroy request?

If janus-gateway destroy it automatically, when does it do it?

No, rooms are never destroyed automatically, that’s up to you.

Got it. Thanks for the quick response!