File size: 479 Bytes
071aea2
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
**To cancel a capacity reservation**

The following ``cancel-capacity-reservation`` example cancels the specified capacity reservation. ::

    aws ec2 cancel-capacity-reservation \
        --capacity-reservation-id cr-1234abcd56EXAMPLE

Output::

    {
        "Return": true
    }

For more information, see `Cancel a Capacity Reservation <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/capacity-reservations-release.html>`__ in the *Amazon EC2 User Guide*.