why? API delete PPPOE USER fali

mikrotik.Send(“/ppp/sec/remove”);
mikrotik.Send(“=name=user1”);

fail

mikrotik.Send(“/ppp/sec/remove”);
mikrotik.Send(“=user1”);

fail


api Not support?

there is no such submenu as “sec” :smiley:
use full names, api does not support auto completion

correct syntax:

/ppp/secret/remove
=numbers=user1

/ppp/secret/remove
=name=user1

/ppp/secret/remove
=user1

Or failure

Tips are as follows
[color=#FF0000!trap=message=argument error
!done][/color]

OK!!!

=namebers=user1

thanks!!

my friend you could remove users from active connections ?

I’m searching more so far without success

try like this:

/ppp/active/remove
=.id=my_username
	$API->comm("/ppp/secret/set", array(
		".id"	   => "$id"	,
		"profile"  => "$prof"	,
		"comment"  => "$date"	,
		"caller-id"=> ""
	));									     <------Work Normal

	$API->comm("/ppp/active/remove", array(".id"=>"$id"));   <------Not Work  :?

check with python API client to see if commands you are using actually work, and then debug your API implementation (it seems in PHP) to make it work correctly.

seems like you cannot use ‘name’ as .id in /ppp/active, because ‘name’ does not identify the item uniquely: there can be many entries with the same ‘name’ field. so you need to do /ppp/active/print, and then use received .ids to remove actual items