# Sls deploy ... creates a massive number of S3 buckets, and emptying and deleting them is manual headache

**URL:** <https://forum.serverless.com/t/sls-deploy-creates-a-massive-number-of-s3-buckets-and-emptying-and-deleting-them-is-manual-headache/18692>\
**Category:** Serverless Framework\
**Tags:** aws\
**Created:** [April 3, 2023, 10:45am UTC](https://forum.serverless.com/t/sls-deploy-creates-a-massive-number-of-s3-buckets-and-emptying-and-deleting-them-is-manual-headache/18692 "2023-04-03T10:45:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jnsunkersett](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@jnsunkersett](https://forum.serverless.com/u/jnsunkersett)\
**Post date:** [April 3, 2023, 10:45am UTC](https://forum.serverless.com/t/sls-deploy-creates-a-massive-number-of-s3-buckets-and-emptying-and-deleting-them-is-manual-headache/18692/1 "2023-04-03T10:45:19Z")

</div>

Hi,

We have been using the serverless framework to develop and deploy AWS Lambda functions, for 1+ year.

Today discovered that sls deploy had created so many S3 buckets that AWS returned an  
error : TooManyBuckets

Upon browsing the list of s3 buckets found several which were created by serverless and left abandoned. (some containing the ./serverless folder, some empty)

The names of all these buckets ended with a generated number such as ::  
\*\*\*deployementbucket-17uv6bwvoxl8c,  
\*\*\*deployementbucket-1i7msqt3jcf31,  
\*\*\*deployementbucket- f1dbu8e202je

and so on.

The \*\*\* was the name of my Lambda, that were not even in existence.  
They had been deleted via the AWS console.

It was a painful, monotonous task on the AWS console, to browse into each and executing a “Empty bucket” and “Delete bucket”.

Is there a better way?  
Is it not possible to remove unwanted deploymentbuckets by a single sls command.

thanks  
Jeevan  
PS:

 ![serverless-deployment-buckets](https://canada1.discourse-cdn.com/flex036/uploads/serverless/original/2X/4/423cf0a90a8d4bdf5444d116a0ae3bf937e3f23e.png)
