All Products
Search
Document Center

Simple Log Service:delete_project

Last Updated:Jun 03, 2026

Deletes a Simple Log Service project by using the CLI.

Request syntax

Warning

Deleting a project permanently removes all log data and configurations in the project. This action cannot be undone.

aliyunlog log delete_project --project_name=<value> [--access-id=<value>] [--access-key=<value>] [--sts-token=<value>] [--region-endpoint=<value>] [--client-name=<value>] [--jmes-filter=<value>] [--format-output=<value>] [--decode-output=<value>]

Request parameters

Parameters specific to the delete_project command:

Parameter

Type

Required

Example

Description

--project_name

String

Yes

project-a

The project name.

For information about the global parameters of the Simple Log Service command-line interface (CLI), see Global parameters.

Examples

  • Request example

    Delete a project named project-a with the default account:

    aliyunlog log delete_project --project_name="project-a"
  • Response example

    No response is returned on success. To verify the deletion, run:

    aliyunlog log get_project --project_name="project-a" --format-output=json,no_escape

    A ProjectNotExist error confirms that the project was deleted.

    {"errorCode": "ProjectNotExist", "errorMessage": "The Project does not exist : gs-cli-test", "requestId": "6679268F733026C5CC6ABA22"}

Error codes

If an error is returned, troubleshoot it based on the error codes of the related API operation. For more information, see Error codes.

API reference

DeleteProject