I'm not sure I understand how you can deal with an IP address without also knowing its netmask,
whether you're calling it a subnet or a host IP address. In fact, Linux's tools complain if you try to
manipulate an IP address without the mask:
bcook@target4:~$ sudo ip addr add 18.104.22.168/16 dev test2
bcook@target4:~$ sudo ip addr del 22.214.171.124 dev test2
Warning: Executing wildcard deletion to stay compatible with old scripts.
Explicitly specify the prefix length (126.96.36.199/32) to avoid this warning.
This special behaviour is likely to disappear in further releases,
fix your scripts!