Remove a project's reference file
remove_project_sourceRemoves one of a project's reference files, by the sourceId list_project_sources gives: it is no longer one of the project's files and can no longer be downloaded, and every knowledge entry made from its words is deleted, so later changes stop using them. Its earlier versions stay as the record. Only an owner or admin of the workspace may remove a file (the answer is forbidden otherwise). Give expectedVersion, the newest version you saw, to refuse if someone added a newer one since (the answer is stale: look again first). An incomplete answer means some of its words are still in the project's knowledge: remove it again to finish.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>",
"source_id": "<source_id>"
},
"name": "remove_project_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_id | Yes | The file's sourceId from list_project_sources (psrc_...). | |
| project_id | Yes | The project's id (prj_...) from list_projects. | |
| workspace_id | No | Workspace id from whoami; omit when there is one. | |
| expected_version | No | The newest version you saw (currentVersion from list_project_sources); the removal is refused if a newer one arrived since. |