Hi,
Do not use CLI “dynamic-configuration session delete session-id XXXX” to delete subscriber session. This knob can cause unexpected behaviours & it’s strictly not be used in production environment thus its hidden command.
In case if subscriber session is not being cleared using primary command “clear network-access aaa subscriber username xxx' if the suscriber is authenticated (other than PPPoE, you can have DHCP authenticated subscriber as well).
Now in your case of DHCP, clear the dhcp client binding as follows:
clear dhcp server binding x.x.x.x routing-instance (if any)
and in case of dhcp relay, use the follow:
clear dhcp relay binding x.x.x.x routing-instance (if any)
please log a new thread/post to know more gracefull CLI knob to clear a session.