Following the logic of this code. It was possible to update the sql database and then delete the ip addresses as a workaround:
$sudo -iu postgres psql \c maasdb \\ -- switch to maasdb UPDATE maasserver_staticipaddress SET alloc_type = 5 where ip = '<ip-address>' AND alloc_type = 6; ^D $ maas root ipaddresses release ip='<ip-address>' force=true
Following the logic of this code. It was possible to update the sql database and then delete the ip addresses as a workaround:
$sudo -iu postgres psql staticipaddress SET alloc_type = 5 where ip = '<ip-address>' AND alloc_type = 6;
\c maasdb \\ -- switch to maasdb
UPDATE maasserver_
^D
$ maas root ipaddresses release ip='<ip-address>' force=true