Difficulty while using mikrotic api commands

Sir,

I am trying the trial version of RouterOS 4.10 .I wanted to make a small application to connect and communicate with the RouterOS using the APIs.I was successfully able to login and execute few commands.The problem is i was trying to remove an entry in the address list but could not remove it.

I was able to do it using the terminal using the command:
ip firewall address-list remove numbers=0

The api command i executed :
"/ip/firewall/address-list/remove\n=numbers=0\n "

I am also having trouble with converting other commandline commands to api form as well.
I would be really grateful if anybody can help me with this matter.

regards,

Anindh Thomas

you can’t use the same numbers as used from console.
To remove an entry you have to specify internal id retrieved by print or getall command.
Please look at this article:
http://wiki.mikrotik.com/wiki/API_command_notes