title: How to remove Mikrotik PHP Api firewall nat entry using find
body: <p>I am trying to add and remove NAT entry using a single line php api code but unable to do it.</p>
  
  <p><strong>Terminal code Mikrotik:</strong> </p>
  
  <blockquote>
    <p>/ip firewall nat remove [find comment=id9]   </p>
  </blockquote>
  
  <pre><code>//Its working fine on terminal
  </code></pre>
  
  <p><strong>I am trying writing bellow php api:</strong></p>
  
  <p><strong>to Add:</strong></p>
  
  <blockquote>
    <p>$API->comm("/ip/firewall/nat/add\n=chain=dstnat\n=src-address=103.19.131.3\n=protocol=tcp\n=action=dst-nat\n=comment=id9\n=to-addresses=103.19.130.215\n=to-ports=80");</p>
  </blockquote>
  
  <pre><code>//Working fine
  </code></pre>
  
  <p><strong>to remove:</strong></p>
  
  <blockquote>
    <p>$API->comm("/ip/firewall/nat/remove/[find\n=comment=id9]");</p>
  </blockquote>
  
  <pre><code> //Not working
  </code></pre>
  
  <p>Can anyone help me to solve it? Thanks in advance.</p>