# Delete a source file

`DELETE /contexts/{slug}/source/delete/{path}`

:::code-group
```bash title="cURL"
curl --request DELETE \
  --url https://{host}/api/contexts/{slug}/source/delete/{path} \
  --header 'Authorization: Bearer <token>'
```

```json title="200"
{
  "deleted": true,
  "path": "<string>"
}
```
:::

## Authorizations

- `Authorization` (header, string, required) — Bearer authentication header of the form `Bearer <token>`.

## Path Parameters

- `slug` (path, string, required) — Context slug or UUID.
- `path` (path, string, required) — Relative path within the tree. Matches greedily, so it may contain `/`.

## Headers

- `X-Pinecone-Api-Version` (header, string) — Date-based contract version, echoed back on the same header. Omit for the default (`2026-07`); send `unstable` for the in-development surface. An unrecognized value is rejected with `400 unsupported_api_version`.

## Response

- `200` — Deleted
- `404` — Not found

## Related pages

- [Import source documents from a project connector](./data-plane-source-files-import-source-documents-from-a-project-connector.md)
- [Upload a source file or archive](./data-plane-source-files-upload-a-source-file-or-archive.md)
- [List the source file tree (root)](./data-plane-source-files-list-the-source-file-tree-root.md)
- [Source file/dir/size counts](./data-plane-source-files-source-filedirsize-counts.md)
- [Flat manifest of source files (path, size, last_modified)](./data-plane-source-files-flat-manifest-of-source-files-path-size-last-modified.md)
- [List the source file tree under a path](./data-plane-source-files-list-the-source-file-tree-under-a-path.md)
- [Read a source file (raw bytes)](./data-plane-source-files-read-a-source-file-raw-bytes.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
