Kill conference from Dialplan

Hello, imagine there is a conference already in place (with say 3 ppl inside) and when I dial in, my dialplan sends me to join that conference. I would like the conference to be killed (all users booted) when I hang up the dialed in call. I am using Monitor and execute a script after recording is complete so I imagine the “kill” command could be somewhere in there. Any ideas?