---
title: "Truncate a Table"
method: GET
path: "/kvservice.truncate/{tableName}"
tags: ["Key-Value Store"]
---

# Truncate a Table

`GET /kvservice.truncate/{tableName}`

## Request

- Base URL: `https://companynode.pricefx.com/pricefx/companypartition`
- URL: `https://companynode.pricefx.com/pricefx/companypartition/kvservice.truncate/{tableName}`
- Auth: one of:
  - HTTP basic
  - API key in header `X-PriceFx-jwt`
- TypeScript: <https://skmtc.dev/pricefx/apis/the-pricefx-backend-api/docs/kvservice.truncate/:tableName/get.ts> (a function with typed inputs; its response is checked against the schema)

Truncates the table; removes all key values from the table. Table structure (primary keys, columns, indexes) remains.

## Response `200`

OK

- object
  - `response` object
    - `node` string
    - `data` object, nullable
    - `status` integer

---

[API](https://skmtc.dev/pricefx/apis/the-pricefx-backend-api.md) - [All operations](https://skmtc.dev/pricefx/apis/the-pricefx-backend-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pricefx/apis/the-pricefx-backend-api/revisions/23d941b00ac0?raw)
