選取您的 Cookie 偏好設定

我們使用提供自身網站和服務所需的基本 Cookie 和類似工具。我們使用效能 Cookie 收集匿名統計資料,以便了解客戶如何使用我們的網站並進行改進。基本 Cookie 無法停用,但可以按一下「自訂」或「拒絕」以拒絕效能 Cookie。

如果您同意,AWS 與經核准的第三方也會使用 Cookie 提供實用的網站功能、記住您的偏好設定,並顯示相關內容,包括相關廣告。若要接受或拒絕所有非必要 Cookie,請按一下「接受」或「拒絕」。若要進行更詳細的選擇,請按一下「自訂」。

DeleteApplicationVersion - AWS Elastic Beanstalk
此頁面尚未翻譯為您的語言。 請求翻譯

DeleteApplicationVersion

Deletes the specified version from the specified application.

Note

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

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

ApplicationName

The name of the application to which the version belongs.

Type: String

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

Required: Yes

DeleteSourceBundle

Set to true to delete the source bundle from your storage bucket. Otherwise, the application version is deleted only from Elastic Beanstalk and the source bundle remains in Amazon S3.

Type: Boolean

Required: No

VersionLabel

The label of the version to delete.

Type: String

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

Required: Yes

Errors

For information about the errors that are common to all actions, see Common Errors.

InsufficientPrivileges

The specified account does not have sufficient privileges for one or more AWS services.

HTTP Status Code: 403

OperationInProgressFailure

Unable to perform the specified operation because another operation that effects an element in this activity is already in progress.

HTTP Status Code: 400

S3LocationNotInServiceRegion

The specified S3 bucket does not belong to the S3 region in which the service is running. The following regions are supported:

  • IAD/us-east-1

  • PDX/us-west-2

  • DUB/eu-west-1

HTTP Status Code: 400

SourceBundleDeletionFailure

Unable to delete the Amazon S3 source bundle associated with the application version. The application version was deleted successfully.

HTTP Status Code: 400

Examples

Example

This example illustrates one usage of DeleteApplicationVersion.

Sample Request

https://elasticbeanstalk.us-west-2.amazonaws.com/?ApplicationName=SampleApp &VersionLabel=First%20Release &Operation=DeleteApplicationVersion &AuthParams

Sample Response

<DeleteApplicationVersionResponse xmlns="https://elasticbeanstalk.amazonaws.com/docs/2010-12-01/"> <ResponseMetadata> <RequestId>58dc7339-f272-11df-8a78-9f77047e0d0c</RequestId> </ResponseMetadata> </DeleteApplicationVersionResponse>

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

隱私權網站條款Cookie 偏好設定
© 2025, Amazon Web Services, Inc.或其附屬公司。保留所有權利。