To clear the local-address and remote-address in MikroTik PPP secrets via the API, you can:
Connect to the MikroTik router using the API.
Find the PPP secret by name.
Update the PPP secret to clear the local-address and remote-address fields.