---
title: "Delete a Notebook Block"
url: https://docs.sentry.io/api/notebooks/delete-a-notebook-block/
---

# Delete a Notebook Block | Sentry Docs

ExperimentalThis API is under active development and may change.

DELETE /api/0/organizations/{organization\_id\_or\_slug}/notebooks/{notebook\_id}/blocks/{block\_id}/

Soft-delete an active block using notebook and block versions. Active executions and other state conflicts return 409. Returns no body. Requires a user or service account. Requires the organizations:investigations feature and open organization membership.

### Path Parameters

* `organization_id_or_slug` *(string)*

  REQUIRED

  The ID or slug of the organization the resource belongs to.

* `notebook_id` *(string)*

  REQUIRED

  The ID of an investigation in this organization.

* `block_id` *(string)*

  REQUIRED

  The ID of an active block in this investigation.

### Body Parameters

* `notebookVersion` *(integer)*

  REQUIRED

  Current notebook version from the latest detail response. Stale versions return 409.

* `version` *(integer)*

  REQUIRED

  Current block version from the latest block response. Stale versions return 409.

* `workflowRunId` *(string)*

  Parent workflow for a writer removal.

* `writerRunId` *(integer)*

  Registered Seer writer attempt.

### Scopes

You need to [authenticate via bearer auth token.](https://docs.sentry.io/api/auth.md)

`<auth_token>` requires one of the following scopes:

* `org:admin`
* `org:read`
* `org:write`

```
curl https://sentry.io/api/0/organizations/{organization_id_or_slug}/notebooks/{notebook_id}/blocks/{block_id}/ \
 -H 'Authorization: Bearer <auth_token>' \
 -X DELETE \
 -H 'Content-Type: application/json' \
 -d '{}'
```

RESPONSE

```
Copied
No Content.
```

---

Find other pages: [Sitemap](https://docs.sentry.io/sitemap.md) lists every page with a one-line summary, and [llms.txt](https://docs.sentry.io/llms.txt) gives an overview with guidance for agents.
