---
title: "Remove a table's search"
method: DELETE
path: "/find-leads/tables/{table_id}/search/"
tags: ["find-leads"]
---

# Remove a table's search

`DELETE /find-leads/tables/{table_id}/search/`

## 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/find-leads/tables/{table_id}/search/`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Detach the search from a table, keeping or deleting the rows it produced. Rows are identified by the search's own column, so rows added by other means are never touched.

## Path parameters

- `table_id` string, uuid, required

## Query parameters

- `delete_rows` boolean

## Response `200`

Successful Response

- DetachedLeadSearchResponseSchema: What removing a table's search did to the rows it had added.
  - `rows_deleted` integer, required: Rows deleted with the search; 0 when its rows were kept.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: This table has no lead search.
- `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)
