Is there an action when all participants leave the meeting?

I want to add a function:
when all participants leave the meeting (in other word, the meeting has finished), the system will send an notification to organization manager.

in conference.js, I can see leaveRoomAndDisconnect() . when a user leave the meeting, this function will be called. but I don’t know if all the participant leave the room.

is there an action that can tell me that all the participant has left the meeting room and the meeting has finished ?

These kind of events should be detected in prosody, here is one example: https://github.com/jitsi/jitsi-meet/blob/master/resources/prosody-plugins/mod_speakerstats_component.lua#L175

thanks for reply.
is there a similar code in jicofo (like room_destroye()) ?

Well there is search for Disposed conference for room

that help a lot! thanks very much.