delete_file
Delete a stored project file. The same root allowlist as write_file applies: only paths under Features/ or Configurations/.
info
Template scaffolding can't be deleted — only stored project files. Deleting a stored file that overrides a template path makes the template file show through again.
Request
DELETE /api/v1/ops/projects/{project}/files/content?path=
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
project | path | string | yes | The project's public id. |
path | query | string | yes | The file path (e.g. Configurations/Mobile.config.js). |
- cURL
- CLI
- MCP
curl -X DELETE -H "Authorization: Bearer $TESTVIBE_API_KEY" \
"$TESTVIBE_SERVER/api/v1/ops/projects/$PROJECT/files/content?path=Configurations%2FMobile.config.js"
testvibe files delete Configurations/Mobile.config.js
Tool delete_file — { "path": "Configurations/Mobile.config.js" }. Marked destructive: clients may ask for confirmation.
Response
{ "ok": true }
Errors
| HTTP | When |
|---|---|
400 invalid_request | Path outside Features//Configurations/, contains .., or names a template file. |
404 not_found | No stored file at that path. |