ec2-delete-bundle

ec2-delete-bundle -b s3_bucket -a access_key_id -s secret_key [-m manifest_path] [-p ami_prefix] [--url url] [--retry] [-y] [--clear]

Deletes the specified bundle from Amazon S3 storage.

[Note]Note

This tool does not support the Common Options.

OptionDescriptionRequired

-b, --bucket s3_bucket

The name of the Amazon S3 bucket containing the bundled AMI

Example: -b aes-cracker-ami-bucket

Yes

-a, --access-key access_key_id

The AWS access key ID.

Example: -a 10QMXFEV71ZS32XQFTR2

Yes

-s, --secret-key secret_key

The AWS secret access key.

Example: -s DMADSSfPfdaDjbK+RRUhS/aDrjsiZadgAUm8gRU2

Yes

-m, --manifest manifest_path

The path to the unencrypted manifest file.

Example: -m /var/spool/my-first-bundle/Manifest

No

-p, --prefix ami_prefix

The bundled AMI filename prefix.

Example: -p eos-

No

--url url

The Amazon S3 service URL.

Default: https://s3.amazonaws.com

Example: --url https://s3.amazonaws.ie

No

--retry

Automatically retries failed uploads. Use with caution.

Example: --retry

No

-y, --yes

Automatically assumes the answer to all prompts is 'yes'.

Example: -y

No

--help

Display the help message.

Example: --help

No

--manual

Display the manual entry.

Example: --manual

No

--clear

Deletes the specified bundle from the Amazon S3 bucket and deletes the bucket, if empty.

Example: --clear

No

Amazon EC2 displays status messages indicating the stages and status of the delete process.

This example deletes a bundle from Amazon S3.

$ ec2-delete-bundle -b my-s3-bucket -a 10QMXFEV71ZS32XQFTR2 -s DMADSSfPfdaDjbK+RRUhS/aDrjsiZadgAUm8gRU2 -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.