If removing a primary IP address when secondary IP addresses are present, the Secondary IP addresses must be removed first before the primary can be modified.
If you need to move the secondary to primary with minimal down time.
1. copy the no form of the command to remove the secondary, then on a second line enter the command to configure the primary using the secondary IP
2. Enter interface config mode
3. Paste the two lines into the CLI