> Agent-readable docs index: /llms.txt. Download /docs.zip to grep all markdown files locally.

---
title: "deleteNode"
sidebarTitle: "deleteNode"
description: "Deletes a Framer node, color style, text style, or code file. - For nodes: Pass the node ID to remove it from the page/component (also removes all children) - For color/text styles: Pass the style pat"
tag: "TOOL"
tagColor: "purple"
gridGap: 30
---

<Aside full>
  <RequestExample>
    ```json lines=false
    {
      "method": "tools/call",
      "params": {
        "name": "deleteNode",
        "arguments": {
          "nodeId": "string"
        }
      }
    }
    ```
  </RequestExample>
</Aside>

<MCPTool {...{"name":"deleteNode","description":"Deletes a Framer node, color style, text style, or code file.\n\n- For nodes: Pass the node ID to remove it from the page/component (also removes all children)\n- For color/text styles: Pass the style path (e.g., \"/Primary\", \"/Heading xl\")\n- For code files: Pass the code file ID\n\nNEVER use this tool to change the parent of a node! Instead use updateXmlForNode to move an element to another parent, reference both the element id and the new parent id and updateXmlForNode will do the reparenting for you.\n","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"nodeId":{"type":"string","minLength":1,"description":"The ID of the node/style/code file to delete"}},"required":["nodeId"],"additionalProperties":false},"annotations":{"destructiveHint":true}}} />
