Closed nikvs84 closed 6 years ago
You could try
List<Map<String, String> id = con.execute("/queue/simple/print where comment=xx return .id");
Then use the id to delete;
con.execute("/queue/simple/remove .id="+id.get(0).get(".id")+"");
Havent had any luck with using find over the API
You can't use [/[/queue/simple/find ...]
because you're effectively scripting which is not supported by the underlying API (limitation for RouterOS, not the Java library).
@ambroseahurra, @GideonLeGrange, thanks!
Thank U so mutch @ambroseahurra
How to execute command /queue/simple/remove [/queue/simple/find comment={comment}] with java API? As a result of executing the command, I get an exception: