Disconnect a CDB subscriber

Is there a proper way to disconnect a CDB subscriber?

Does closing the socket isn’t enough?

For a reason, I still see the subscriber in the confd --status after I close the socket.

Thanks.

Check that you closed the subscriber socket. I.e. the socket you did a cdb_subscribe() on.
If you did, you will no longer see the subscriber when running confd --status