AWS Elastic Beanstalk
Developer Guide (API Version 2010-12-01)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Go to the Kindle Store to download this guide in Kindle format.Did this page help you?  Yes | No |  Tell us about it...

elastic-beanstalk-delete-application-version

Description

Deletes the specified version from the specified application.

Note

You cannot delete an application version that is associated with a running environment.

Syntax

elastic-beanstalk-delete-application-version -a [name] -l [label] -d

Options

NameDescriptionRequired

-a

--application-name name

The name of the application to delete releases from.

Type: String

Default: None

Yes

-l

--version-label

The label of the version to delete.

Type: String

Default: None

Length Constraints: Minimum value of 1. Maximum value of 100.

Yes

-d

--delete-source-bundle

Indicates whether to delete the associated source bundle from Amazon S3.

true: An attempt is made to delete the associated Amazon S3 source bundle specified at time of creation.

false: No action is taken on the Amazon S3 source bundle specified at time of creation.

Type: Boolean

Valid Values: true | false

Default: false

No

Output

The command returns the string Application version deleted.

Examples

Deleting an Application Version

This example shows how to delete an application version.

PROMPT> elastic-beanstalk-delete-application-version -a MySampleApp -l MyAppVersion

Deleting an Application Version and Amazon S3 Source Bundle

This example shows how to delete an application version.

PROMPT> elastic-beanstalk-delete-application-version -a MySampleApp -l MyAppVersion -d