looking for an API equivalent

Hello.
On the mikrotik CLI, i’m able to issue command like this:

/ip pool remove test_pool2

However, i’m unable to find any equivalent to that in API.
I was trying:

"/ip/pool/remove/test_pool2"



"/ip/pool/remove"
"test_pool2"



"/ip/pool/remove"
"=name=test_pool2"

Is there any way to do this w/o using .id param ?

Thank you

No, you need to get ID first.

thank you.

In menus like “/ip pool” where unique names are required, you should be able to use the name directly, but you do need to give it to “numbers”, e.g.

/ip/pool/remove
=numbers=test_pool2

And the same can actually be done from CLI too, except that giving the name “numbers” is optional, i.e.

/ip pool remove numbers=test_pool2

is another valid, but slightly more verbose way to remove test_pool2 from CLI.