---
title: "Delete several columns in one call"
method: POST
path: "/tables/{table_id}/columns/batch-delete/"
tags: ["table-columns"]
---

# Delete several columns in one call

`POST /tables/{table_id}/columns/batch-delete/`

## Request

- Base URL: `https://api.getoneprofile.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.getoneprofile.ai/tables/{table_id}/columns/batch-delete/`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Delete a set of columns as ONE delete: dependents inside the batch never block it, which is what lets a whole column group (a fan-out's children depend on their parent) go in one request. Dependents outside the batch still block, or are repointed via `replace_with_column_id`. A group whose last member is deleted is dissolved. A POST rather than a DELETE because it carries a body.

## Path parameters

- `table_id` string, uuid, required

## Request body

- TableColumnsBatchDeleteRequestSchema: Request body for deleting several columns as one batch.
  - `column_ids` string[], required: The columns to delete. Dependents inside the batch never block it; dependents outside it still do.
  - `replace_with_column_id` string, uuid, nullable: Repoint surviving dependents' references at this column before deleting. Omit to refuse the delete while outside dependents exist.

## Response `200`

Successful Response

- SuccessfullyDeletedResponse
  - `count` integer: The number of resources that were deleted.
  - `detail` string, required: The detail of why the resource was deleted.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Table not found
- `422`: Invalid request made to the API.
- `500`: Internal server error.
- `502`: Bad gateway error.
- `503`: Service unavailable.

---

[API](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile.md) · [All operations](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile/llms.txt) · [OpenAPI document](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile/revisions/dc5ac3c84444?raw)
