[DHCP-SERVER] Delete all dynamic leases

Hi there,

I’m using RouterOS 5.23. I want to delete with one entry (via CLI) all dynamic DHCP server leases.
Is it possible?

Thanks :slight_smile:

if you have only one DHCP-Server you can do the following:
/ip dhcp-server lease remove [find dynamic]if you have several servers, you have to add additional filter to filter by server.
/ip dhcp-server lease remove [find dynamic server=dhcp1]

Thanks!