All Products
Search
Document Center

Simple Log Service:How do I deactivate Simple Log Service or stop being billed for Simple Log Service?

Last Updated:Sep 03, 2024

After Simple Log Service is activated, you cannot deactivate it. If you no longer require Simple Log Service, you can delete projects and Logstores. This topic describes how to delete projects and Logstores in Simple Log Service.

Background information

Delete projects and Logstores

Warning

After you delete projects or Logstores, all related logs and configurations are deleted and cannot be restored regardless of which deletion method is used. Proceed with caution to avoid data loss. If you cannot delete projects or Logstores by performing the following operations, call the DeleteProject or DeleteLogStore operation to delete the projects or Logstores.

Cloud service logs

When you enable the log analysis feature for Alibaba Cloud services, such as elastic computing, storage, security, and database services, projects and Logstores are automatically created in the Simple Log Service console. For more information, see Enable the log analysis feature. If you no longer require the logs of cloud services, you can perform the following operations:

  1. Disable the log analysis feature in the consoles of the related cloud services.

  2. Delete projects or Logstores in the Simple Log Service console.

Log Audit Service logs

For more information about Log Audit Service FAQ, see FAQ and troubleshooting.

  • If you no longer need to collect logs from cloud services but you want to temporarily retain the collected logs, see Disable log collection. Logs are deleted when the retention period ends.

  • If you want to clear and delete all Simple Log Service resources that are related to Log Audit Service, see Delete audit resources. The resources include projects, Logstores, dashboards, and alerts.

CloudLens service logs

Precautions

Warning

To use a CloudLens application, make sure that at least one project exists within your Alibaba Cloud account.

When you enable a CloudLens application, Simple Log Service automatically checks whether a project exists within your Alibaba Cloud account.

Check logic
  1. The first time you enable a CloudLens application, Simple Log Service automatically checks whether a project exists within your Alibaba Cloud account. If no projects exist, Simple Log Service creates a project whose name is in the aliyun-product-data-<Alibaba Cloud account ID>-cn-heyuan format in the China (Heyuan) region.

  2. After you enable a CloudLens application, Simple Log Service automatically checks whether a project exists within your Alibaba Cloud account. If no projects exist, Simple Log Service does not create a project in the China (Heyuan) region. You can manually create a project. For more information about how to create a project, see Manage a project.

Delete a project
  • If you want to delete the project whose name is in the aliyun-product-data-<Alibaba Cloud account ID>-cn-heyuan format, open Cloud Shell and run the following command. Replace Alibaba Cloud account ID based on your business scenario.

    aliyunlog log delete_project --project_name=aliyun-product-data-<Alibaba Cloud account ID>-cn-heyuan --region-endpoint=cn-heyuan.log.aliyuncs.com
  • If you want to delete other projects and Logstores, follow the instructions provided in Manage a Logstore and Manage a project.

Other logs

If you want to retain projects and delete Logstores, see Delete a Logstore. If you want to delete entire projects, see Delete a project.

References