# Deleting DHCPv6 Client Bindings

The JunosE Software enables you to manage your router’s DHCPv6 local server client bindings. The client binding associates an IPv6 prefix with a unique DHCP ID (DUID) of the subscriber client. To view information about current DHCPv6 client bindings and track lease times of a specific client binding, use the show ipv6 dhcpv6–local binding command.

To delete a client binding and the associated route configuration when the DHCPv6 client binding is no longer needed, use the dhcpv6 delete-binding command. You can delete the DHCPv6 client bindings instead of waiting for the lease timer to expire. Use the following keywords and variables with the dhcpv6 delete-binding command to specify (filter) the client bindings you want to delete:

- all—All DHCPv6 local server client bindings
- ipv6Prefix—IPv6 prefix (address and subnetwork mask) of the DHCPv6 clients; for example, 2002:2:4:1::/64
- string—Local address pool name; for example, server4pool

| Note: After a stateful SRP switchover, in a scaled environment, the interface strings associated with DHCPv6 client bindings might not be displayed in the output of the show commands used to view information about client bindings if you issue the show command immediately after a stateful SRP switchover. These show commands display interface strings in the output only if the restoration of IPv6 interfaces on the router is complete after the SRP warm switchover. After the restoration of IPv6 interfaces is complete, interface strings are displayed properly in the output of the show commands available for this purpose.

You can remove all DHCPv6 client bindings, all DHCPv6 client bindings of a particular type, or a specified DHCPv6 client binding that meets the deletion criteria you specify.

- To delete all DHCPv6 client bindings on virtual router vr1:
  host1:vr1#dhcpv6 delete-binding all
- To delete DHCPv6 client bindings with the specified IPv6 prefix:
  host1:vr1#dhcpv6 delete-binding 2002:2:4:1::/64
- To delete a group of DHCPv6 client bindings that were assigned prefix from the local pool:
  host1:vr2#dhcpv6 delete-binding server4pool

The router does not notify the DHCPv6 client when you use the dhcpv6 delete-binding command. To verify that the DHCPv6 client bindings have been deleted, use the show ipv6 dhcpv6–local binding command.

#### Related Documentation

- dhcpv6 delete-binding
- show ipv6 dhcpv6-local binding
- Monitoring DHCPv6 Local Server Binding Information