All Products
Search
Document Center

Simple Log Service:How to delete logs?

Last Updated:Sep 16, 2025

Simple Log Service does not support deleting logs directly. To delete logs, you can modify the data retention period of a Logstore. Logs are automatically deleted after their retention period expires. This topic describes how to modify the data retention period of a Logstore.

Procedure

  1. Log on to the Simple Log Service console.

  2. In the Projects section, click the one you want.

    image

  3. On the Log Storage > Logstores tab, hover over the target Logstore and select 修改日志库> Modify.

    image

  4. On the Logstore Attributes page, click Modify.

    image

  5. Modify Data Retention Period and click Save.

    Logs are deleted after their retention period ends.

    Important
    • If you shorten the data retention period, Simple Log Service deletes all expired data within 1 hour. For example, if you change the data retention period from 5 days to 1 day, Simple Log Service deletes the logs of the previous four days within 1 hour.

    • Logs cannot be restored after they are deleted. Proceed with caution.

References

For more information about how to resolve issues, such as being unable to delete a project, log loss, or high log storage costs, see Manage Logstores.