---
title: "Reset Primary Keys"
method: DELETE
path: "/api/connections/{connection_id}/schemas/{schema_id}/primary_keys"
tags: ["Schemas"]
---

# Reset Primary Keys

`DELETE /api/connections/{connection_id}/schemas/{schema_id}/primary_keys`

Deletes all primary key overrides for a schema, reverting to the primary keys detected from the source.

To replace the overrides with a new set rather than clearing them entirely,
use [`PUT /api/connections/{connection_id}/schemas/{schema_id}/primary_keys`](../../../../../../api-reference/schemas/set-primary-keys)
instead.

## Path parameters

- `connection_id` string, uuid, required — Unique identifier of the connection.
- `schema_id` string, required — Identifier of the schema whose primary key override should be cleared.

## Headers

- `X-Polytomic-Version` string

## Response `202`

Accepted

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.dev/polytomic/apis/polytomic-api.md) · [All operations](https://skmtc.dev/polytomic/apis/polytomic-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/polytomic/polytomic-api/revisions/d40615e3d6f8/schema)
