DELETE command lets you delete a network or a device from the configuration.
Deleting a network
Note that for practical reasons, this operation makes sense only for remote networks. You cannot delete an active network with a local interface. Any auto-generated sub-networks (such as those generated by Ethernet/IP route browsing) can be deleted, but will re-appear during probing.
For example, to reference the network you want to delete, use the network's GUID after the /networks endpoint.
will delete the remote network with the GUID BDDEE0CA-E615-49BB-9E13-356D308207BB.
Deleting a device, or blacklisting an IP address
You can delete individual devices from a network using the sub-addressing "/device/", follewed by the device's IP address, host name, or MAC address.
For this request, the following options can be used:
Exclude IP address of the device from the network IP range (OTbase Discovery will no longer try to detect the device)
In combination with exclude=True: will exclude the IP address even if the device is not currently present (you have to provide the device IP Address in the URI)
In this example we delete a device with IP address 192.168.78.86 from the network 87E4D1C5-F637-4EC7-94EF-FA5C1C280C6D, and exclude the IP address from further discovery even if the device is currently not present. This way, the IP address is effectively blacklisted for further probing.