---
title: "Delete a table view"
method: DELETE
path: "/tables/{table_id}/views/{view_id}/"
tags: ["table-views"]
---

# Delete a table view

`DELETE /tables/{table_id}/views/{view_id}/`

## 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}/views/{view_id}/`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Delete a saved view. The table, its columns, and its rows are untouched; a view is only a stored way of looking at them. Refused while a draft, running or paused sequence reads its contacts through the view, naming them: change their audience first.

## Path parameters

- `table_id` string, uuid, required
- `view_id` string, uuid, required

## Query parameters

- `dry_run` boolean: Report what would be deleted, and delete nothing.

## 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 or view not found
- `422`: Invalid request made to the API.
- `500`: Internal server error.
- `502`: Bad gateway error.
- `503`: Service unavailable.

## Changes

- **2026-10-20** `031f897aaf3e`: 1 info
  - added the new optional `query` request parameter `dry_run`

[Operation history](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile/changes/tables/:table_id/views/:view_id/delete.md)

---

[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/9327a1d02821?raw)
