Command Line Remove Adlist List

Hi,

To add a list the command is

/ip/dns/adlist add url=https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts ssl-verify=no

what would be the command to remove the host list?

I had tried these:

and obviously does not work. Of course I could remove it via winbox, but would like to know what is command line.


Henry

One way:

 /ip/dns/adlist> remove [find url=https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts]

Here is another more manual way

[MikroTik] >  /ip/dns/adlist add url=https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts ssl-verify=no

[MikroTik] > /ip/dns/adlist/ print
Flags: X - disabled 
 0   url="https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts" ssl-verify=no match-count=0 
     name-count=17728 
     
[MikroTik] > /ip/dns/adlist/ remove numbers=0

[MikroTik] > /ip/dns/adlist/ print           
Flags: X - disabled

this should be enough, if you made “print” before:

/ip/dns/adlist> remove 0

Same as with any item in RouterOS