Call code when a zone is removed?

How do I call code when a zone is removed, ie a remote that is configured as a zone is turned off. I have my RoonApiTransport, and listen for the cmd Changed as of now but I’m not sure if this is what I need and how to detect it.