---
title: "removes an entire existing element from the notebook"
method: POST
path: "/api/notebook/removeElement"
---

# removes an entire existing element from the notebook

`POST /api/notebook/removeElement`

removes an entire existing element from the notebook

## Query parameters

- `notebookId` string, required

## Request body

- object
  - `elementId` string, required — the id of the element you want to remove

## Response `200`

Ok

## Changes

- **2023-11-27** `c2d57e621a13` — 2 breaking, 1 info
  - the request property `elementId` became required
  - the `elementId` request property type changed from no type to `string`
  - api operation id `removeElement` removed and replaced with ``
- **2023-11-20** `ee7eb73634d2` — 1 warning, 1 info
  - deleted the `query` request parameter `elementId`
  - added optional request body
- **2023-11-19** `35c27bb79744` — 1 info
  - added the media type `application/json` for the response with the status `200`
- **2023-10-27** `f8c8d4256dda` — 3 breaking, 1 info
  - added the new required `query` request parameter `elementId`
  - removed the request body
  - removed the media type `application/json` for the response with the status `200`
  - api operation id `removeElement` was added

[Change history](https://skmtc.dev/decipad/apis/create-and-modify-a-decipad-notebook/changes/api/notebook/removeElement/post.md)

---

[API](https://skmtc.dev/decipad/apis/create-and-modify-a-decipad-notebook.md) · [All operations](https://skmtc.dev/decipad/apis/create-and-modify-a-decipad-notebook/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/decipad/create-and-modify-a-decipad-notebook/revisions/5f77d79b504f/schema)
