A question about ZDM FOTA


I have a question about ZDM Fota.
Is there any way to disconnect an already created and connected zdm object from zdm server without rebooting?
My goal is to disconnect the device already connected from ZDM server if there is no any pending FOTA request after the device started and connected to zdm.
Is there any good idea? Or can I know if there is a pending fota request without connecting the device to zdm server?

if you need to be completely disconnected, you can unlink from the wifi network.

Thanks for your help.
However, if I run unlink, then the board will restart. I wanted to disconnect the device from ZDM without reboot