def METHOD_NAME(self):
    if not which(Env.syspaths.ipadm):
        raise ex.Error("crossbow ips are not supported on this system")
    ret, out, err = (0, '', '')
    if self.gateway is not None:
        cmd=['route', '-q', 'delete', 'default', self.gateway]
        r, o, e = self.call(cmd, info=True, outlog=False, errlog=False)
        ret += r
    cmd=[Env.syspaths.ipadm, 'delete-addr', self.stacked_dev+'/'+self.ipdevext]
    r, o, e =  self.vcall(cmd)
    ret += r
    out += o
    err += e
    cmd = [Env.syspaths.ipadm, 'show-addr', '-p', '-o', 'state', self.stacked_dev ]
    _out, _, _ = justcall(cmd)
    _out = _out.strip().split("\n")
    if len(_out) > 0:
        self.log.info("skip delete-ip because addrs still use the ip")
        return ret, out, err
    cmd=[Env.syspaths.ipadm, 'delete-ip', self.stacked_dev]
    r, o, e =  self.vcall(cmd)
    ret += r
    out += o
    err += e
    return ret, out, err