How to use the unset command in the PHP API

Hello guys, I’m developing with the PHP API mikrotik, and I’m having trouble setting the defualt value in the field local-address / remote-address in ppp / secret. For example: there is a following ip in local-address: 192.168.0.1 and I want to set it as default, that is, leave this field as an empty value.

I tried with this script, but to no avail, i would appreciate it if someone could help me:

<?php

require('../src/config/routeros_api.class.php');
require('../src/config/MikrotikConf.php');

$API = new RouterosAPI();
$config = new MikrotikConf();

$API->debug = false;

if ($API->connect($config->getIp(), $config->getLogin(), $config->getPass())) {

    $value1 = 'remote-address';
    $value2 = '*1';
    $API->write('/ppp/secret/unset');
    $API->write('=numbers=' . $value2, false);
    $API->write('=value-name=' . $value1, false);


    $API->read();


    $API->disconnect();
}

Hello guys, after several tests I managed to get the solution I was looking for. This was the solution I found:

<?php

require('../src/config/routeros_api.class.php');
require('../src/config/MikrotikConf.php');

$API = new RouterosAPI();
$config = new MikrotikConf();

$API->debug = false;

if ($API->connect($config->getIp(), $config->getLogin(), $config->getPass())) {

    $API->comm('/ppp/secret/unset', array(
        "value-name" =>  "remote-address", //remote-address or local-address
        "numbers"    =>  "*1", //name or id
    ));


    $API->disconnect();
}