dnmclient api cleanup