Trying to delete an ip address in a list using ftp

I am successfully adding IP address using an ftp upload scrip, but now sure how to create a script to remove an ip from a specific list

tried this but it wiped out my list so it must be close. Need to specify in the script the IP address to remove but not sure where to put it.


“/ip firewall address-list remove [/ip firewall address-list find list=”&listname&“]”

Thanks!

I found what I is what I was looking for:

/ip firewall address-list remove [find address=X.X.X.X list=remote_evilhosts]

Thanks!