ec2-delete-bundle
Description
Deletes the specified bundle from Amazon S3 storage.
Syntax
ec2-delete-bundle
-b s3_bucket
-a access_key_id
-s secret_key
[-m manifest_path
]
[-p ami_prefix
]
[--url url
]
[--retry]
[-y]
[--clear]
Options
Option | Description | Required |
---|---|---|
|
The name of the Amazon S3 bucket containing the bundled AMI, followed by an optional '/'-delimited path prefix Example: | Yes |
|
The AWS access key ID. Example: | Yes |
|
The AWS secret access key. Example: | Yes |
|
The path to the unencrypted manifest file. Example: Condition: You must specify | Conditional |
|
The bundled AMI filename prefix. Example: Condition: You must specify | Conditional |
|
The Amazon S3 service URL. Default: Example: | No |
|
Automatically retries on all Amazon S3 errors, up to five times per operation. Example: | No |
|
Automatically assumes the answer to all prompts is 'yes'. Example: | No |
|
Deletes the specified bundle from the Amazon S3 bucket and deletes the bucket, if empty. Example: | No |
Output
Amazon EC2 displays status messages indicating the stages and status of the delete process.
Example
This example deletes a bundle from Amazon S3.
$
ec2-delete-bundle -b my-s3-bucket -a AKIADQKE4SARGYLE -s eW91dHViZS5jb20vd2F0Y2g/dj1SU3NKMTlzeTNKSQ== -p fred
Deleting files: my-s3-bucket/fred.manifest.xml my-s3-bucket/fred.part.00 my-s3-bucket/fred.part.01 my-s3-bucket/fred.part.02 my-s3-bucket/fred.part.03 my-s3-bucket/fred.part.04 my-s3-bucket/fred.part.05 my-s3-bucket/fred.part.06 Continue? [y/n] y Deleted my-s3-bucket/fred.manifest.xml Deleted my-s3-bucket/fred.part.00 Deleted my-s3-bucket/fred.part.01 Deleted my-s3-bucket/fred.part.02 Deleted my-s3-bucket/fred.part.03 Deleted my-s3-bucket/fred.part.04 Deleted my-s3-bucket/fred.part.05 Deleted my-s3-bucket/fred.part.06 ec2-delete-bundle complete.