How to delete a Serverless service that has been deployed

In Terminal, in the directory of the Serverless project, run sls remove along with the stage of the service that you wish to delete. i.e. sls remove -s dev.

Oscar de la Hera Gomez
Written by Oscar de la Hera Gomez
First published on 12/17/2022 at 17:04
Last Updated on 12/17/2022 at 17:39
Two flowers that represent Typescript & Serverless side by side. Beneath it sits the text "Remove Service."

In Terminal, in the directory of the Serverless project, run sls remove along with the stage that you wish to delete.

The following guide walks you through how to remove a deployed Serverless project using Terminal.

Read Serverless's documentation on the remove functionDownload Open Source Typescript & Serverless ProjectHow to create a Typescript & Serverless projectHow to create an API using AWS Lambda & API Gateway in ServerlessHow to deploy a project to AWS

Step One: Set Current Directory

A screenshot of terminal showing how to set the current directory.

Open Terminal and set the current directory to that of the Serverless project that you wish to remove from AWS.

Step Two: Remove deployed project

A screenshot of terminal running sls remove at the current directory of the project.

To remove the project run

sls remove

To remove a specific stage, replace STAGE with the stage you wish to remove and run the following command

sls remove -s STAGE

Any Questions?

We are actively looking for feedback on how to improve this resource. Please send us a note to inquiries@delasign.com with any thoughts or feedback you may have.

SubscribeInquireView All PostsView All ServicesView All Work

Partner with us

We would love to get to know you and see how we can help your organization with its goals and needs.
Let's Talk

Stay Informed

Get occasional updates about our company, research, and product launches.
Subscribe