Delete a Logstore
Run a CLI command to delete a specified Logstore.
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 Logstore is deleted, all log data and configurations stored in the Logstore are permanently released and cannot be recovered. Proceed with caution before deleting a Logstore to avoid data loss.
Command syntax
aliyun sls delete-log-store --project=<value> --logstore=<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. |
|
String |
Yes |
aliyun-test-logstore |
The name of the Logstore. |
For information about global parameters, see Global parameters.
Command examples
Example command
Use the default account to delete aliyun-test-logstore.
aliyun sls delete-log-store --project="aliyun-test-project" --logstore="aliyun-test-logstore"Example response
No response message is returned after the command runs successfully.