I'm trying to remove BGP network with comment which contain word "test" via PHP API but without success:
Mikrotik command is:
Code: Select all
/routing bgp network remove [find comment~"test"];
I tried with 2 solution, but still doesn't work:
1.
Code: Select all
$API->write( '/routing/bgp/network/remove', false );
$API->write( '[find comment~"test"]' );
2.
Code: Select all
$API->write( '/routing/bgp/network/print', false );
$API->write('?comment~test', false);
$API->write('=.proplist=.id');
$ARRAYS = $API->read();
$API->write('/routing/bgp/network/remove', false);
$API->write('=.id=' . $ARRAYS[0]['.id']);
$READ = $API->read();
Thanks!