aws ec2 unassign-private-ip-addresses
Unassigns the specified secondary private IP addresses or IPv4 Prefix Delegation prefixes from a network interface. AWS CLI reference
3 options Its page in the AWS CLI reference
Options
--ipv4-prefixesThe IPv4 prefixes to unassign from the network interface.--network-interface-idThe ID of the network interface.--private-ip-addressesThe secondary private IP addresses to unassign from the network interface.