Updated on 2025-12-26 GMT+08:00

Cleaning Up Binlogs

Scenarios

You can clean up local binlogs with a few clicks for RDS for MySQL instances to free up storage space.

Binlog Cleanup Based on Specified Retention Period

RDS allows you to delete the binlogs exceeding the specified retention period with just a few clicks.

Precautions

  • There is a delay in cleaning up binlogs. Every time after cleaning up binlogs, check whether the storage occupied by these binlogs was released. Do not submit the request multiple times.
  • The following binlogs cannot be cleaned up using this function:
    • Binlogs that are not backed up to OBS yet
    • Binlogs that have not been synchronized to the standby instance
    • Binlogs that have not been received by the incremental backup parsing tool

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and a project.
  3. Click in the upper left corner of the page and choose Database > Relational Database Service.
  4. On the Instances page, click the target DB instance to go to the Basic Information page.
  5. In the navigation pane, choose Backups & Restorations. On the Binlog Backups tab page, click Clear Binlogs.
  6. In the displayed dialog box, click OK.