In some situations, you might want to delete a DHCP lease. For example, if you want a DHCP client to get a different IP address, or if a client shuts down without releasing its IP address and you want the address to be available to other clients.

You can use the following API to delete a DHCP lease:
DELETE /api/v1/dhcp/servers/<server-id>/leases?ip=<ip>&mac=<mac>
To ensure that the correct lease is deleted, call the following API before and after the DELETE API:
GET /api/v1/dhcp/servers/<server-id>/leases

After calling the DELETE API, make sure that the output of the GET API does not show the lease that was deleted.

For more information, see the NSX-T Data Center API Reference.