---
title: "POST /v1/projects/{project}/instances/{instance}/truncateLog"
method: POST
path: "/v1/projects/{project}/instances/{instance}/truncateLog"
tags: ["instances"]
---

# POST /v1/projects/{project}/instances/{instance}/truncateLog

`POST /v1/projects/{project}/instances/{instance}/truncateLog`

Truncate MySQL general and slow query log tables MySQL only.

## Path parameters

- `project` string, required
- `instance` string, required

## Request body

- InstancesTruncateLogRequest — Instance truncate log request.
  - `truncateLogContext` TruncateLogContext — Database Instance truncate log context.
    - `kind` string — This is always `sql#truncateLogContext`.
    - `logType` string — The type of log to truncate. Valid values are `MYSQL_GENERAL_TABLE` and `MYSQL_SLOW_TABLE`.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/sqladmin.md) · [All operations](https://skmtc.net/google/apis/sqladmin/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/sqladmin/revisions/e9eef8a2afcd/schema)
