Delete a Logtail pipeline configuration
Run a CLI command to delete a specified Logtail pipeline configuration.
Prerequisites
Before you run this command, make sure that the following prerequisites are met:
Simple Log Service (SLS) is activated. For more information, see Getting started with SLS.
The SLS CLI is installed and configured. For more information, see Install the CLI and Configure the CLI.
Before you delete a configuration, we recommend that you remove the configuration from its associated machine groups first.
Syntax
aliyun sls delete-logtail-pipeline-config --project=<value> --config-name=<value>Parameters
The following table describes the required and command-specific parameters.
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| --project | String | Yes | aliyun-test-project | The name of the project. |
| --config-name | String | Yes | json-log-config | The name of the configuration. |
For information about global parameters, see Global parameters.
Example
Delete the Logtail pipeline configuration named json-log-config.
aliyun sls delete-logtail-pipeline-config --project="aliyun-test-project" --config-name="json-log-config"Sample response
If the command runs successfully, no response message is returned.