0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Delete a version of a AWS Lambda function from awscli

Last updated at Posted at 2023-09-18

There are several ways to delete a version of a lambda function. All the followings have the same effect. See the manual for details.

With the function name followed by the version

aws lambda delete-function --function-name ${FUNCTION_NAME}:${VERSION}

Example:

aws lambda delete-function --function-name my-function:1

With the function name and the qualifier option

aws lambda delete-function --function-name ${FUNCTION_NAME} --qualifier ${VERSION}

Example:

aws lambda delete-function --function-name my-function --qualifier 1

With the function ARN followed by the version

aws lambda delete-function --function-name ${FUNCTION_ARN}:${VERSION}

Example:

aws lambda delete-function --function-name arn:aws:lambda:us-west-2:123456789012:function:my-function:1

With the function ARN and the qualifier option

aws lambda delete-function --function-name ${FUNCTION_ARN} --qualifier ${VERSION}

Example:

aws lambda delete-function --function-name arn:aws:lambda:us-west-2:123456789012:function:my-function --qualifier 1

Notes

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?