Unable to remove an existing IP address range from the SDDC UI if it is the only range within the network pool or if it is currently in use.
This article provides guidance on removing the IP range using the public API.
Note: Ensure a valid snapshot of the SDDC virtual machine is taken before proceeding with the steps below.
su to switch to the root user and enter the password.TOKEN=`curl -X POST -H "Content-Type: application/json" -d '{"username": "<SSO_administrator>","password": "<SSO_administrator_password>"}' -k https://localhost/v1/tokens | awk -F "\"" '{ print $4}'`curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" -k https://localhost/v1/network-pools | json_ppcurl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" -k https://localhost/v1/network-pools/<I.D from step 5>/networks | json_ppcurl -X DELETE -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" -k https://localhost/v1/network-pools/<Network Pool ID from step 5>/networks/<P Pool ID from step 6>/ip-pools -d '{"start" : <IP_RANGE_START>", "end" : "<IP_RANGE_END>" }'