***

title: deleteChunk
slug: /reference/typescript/rest/datasphere/delete-chunk
description: Delete a specific chunk from a document.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

Delete a specific chunk from a document.

<EndpointSchemaSnippet endpoint="DELETE /api/datasphere/documents/{documentId}/chunks/{chunkId}" />

## **Example**

```typescript {9-9}
import { RestClient } from "@signalwire/sdk";

const client = new RestClient({
  project: "your-project-id",
  token: "your-api-token",
  host: "your-space.signalwire.com"
});

await client.datasphere.documents.deleteChunk("document-id", "chunk-id");
```