tencent cloud

All product documents
Serverless Application Center
Deleting Application
Last updated: 2024-12-02 10:48:09
Deleting Application
Last updated: 2024-12-02 10:48:09

Basic Features

You can quickly delete cloud resources by running the following command:
sls remove

Advanced Features

View specific log information during deletion:
sls remove --debug
There are multiple Serverless instances in the application directory, and you want to delete the specified project only:
sls remove --target xxx
For example, in the project root directory, you can run the sls remove --target ./cos command to delete the COS instance only without affecting other instances.
.
├── src
│ ├── serverless.yml
│ └── index1.js
├── cos
│ └── serverless.yml
├── db
│ └── serverless.yml
└── .env

FAQs

What cloud resources will be removed when sls remove is executed?

Serverless Framework removes cloud resources according to the .yml configuration file. Resources created through the .yml file will be deleted, while imported existing resources will not. For example:
When deploying a function through the SCF component, if you choose to create an API Gateway trigger for deployment, then when you run the command for deletion, the created function and API Gateway resources will be deleted.
If you select an existing API Gateway trigger for deployment, then only the function resources will be deleted, while the used API Gateway trigger will not.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon