Delete old versions of AWS lambdas from your account
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Minor cleanups Jan 8, 2016 Updated the readme to include installation instructions Jan 28, 2016
index.js add Apr 15, 2016

Serverless Lambda Prune Plugin

When developing with Serverless framework your AWS account will quickly hit the 1.5GB total lambda size limit. This plugin will iteratively scan all lambdas in your AWS account (not only lambdas defined in the project!) and remove their old versions.

Most recent versions and versions with aliases are not deleted.


npm install serverless-lambda-prune-plugin


sls function prune


--number number / -n number: keep number most recent versions (default: 5)