Using Console
Using CLI
aws ec2 describe-addresses --filters "Name=association-id,Values=null"
aws ec2 release-address --public-ip <public-ip-address>
Replace <public-ip-address>
with the actual Elastic IP address that needs to be removed.
aws ec2 describe-addresses --public-ips <public-ip-address>
Replace <public-ip-address>
with the actual Elastic IP address that was removed. You should get an error message stating that the Elastic IP address does not exist.
Using Python