Delete a project
Run a CLI command to delete a specified project.
Prerequisites
Before you run the CLI command, make sure that the following requirements are met:
SLS is activated. For more information, see Getting started with Simple Log Service.
The SLS CLI is installed and configured. For more information, see Install the CLI and Configure the CLI.
After a project is deleted, all log data and configurations managed by the project are permanently released and cannot be recovered. Proceed with caution before deleting a project to avoid data loss.
Command syntax
aliyun sls delete-project --project=<value>
Parameters
The following table describes the required and command-specific parameters.
Parameter |
Type |
Required |
Example |
Description |
|
String |
Yes |
aliyun-test-project |
The name of the project. |
For information about global parameters, see Global parameters.
Example
Delete a project named aliyun-test-project.
aliyun sls delete-project --project="aliyun-test-project"
No response message is returned after the command is successfully executed.