# delete_doc_range (https://sellersheetai.com/docs/mcp-api/tools/delete_doc_range)

> Delete a content range by index.

Access: **DESTRUCTIVE** · toolset google_workspace · family null

## Call it

MCP tool call:

```json
{
  "name": "delete_doc_range",
  "arguments": {
    "documentId": "<documentId>",
    "startIndex": 1,
    "endIndex": 1
  }
}
```

Tool API (early access — contact us):

```bash
curl -X POST https://api.sellersheetai.com/api/v1/tools/delete_doc_range \
  -H "Authorization: Bearer $SELLERSHEET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"documentId":"<documentId>","startIndex":1,"endIndex":1}'
```

## Arguments

| Name | Type | Required | Description |
|---|---|---|---|
| `documentId` | string | yes | the Google Docs document ID. |
| `startIndex` | integer | yes | start index, inclusive (from find_doc_text or get_doc). |
| `endIndex` | integer | yes | end index, exclusive. |

## Result

- { deleted: true }

## Gotchas

- Docs refuses deleting the body's final newline, part of a table, or the newline before a table or section break without the element itself; a range across a paragraph end merges the two paragraphs.