Skip to main content

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=
ParameterInTypeRequiredDescription
projectpathstringyesThe project's public id.
pathquerystringyesThe file path (e.g. Configurations/Mobile.config.js).
curl -X DELETE -H "Authorization: Bearer $TESTVIBE_API_KEY" \
"$TESTVIBE_SERVER/api/v1/ops/projects/$PROJECT/files/content?path=Configurations%2FMobile.config.js"

Response

{ "ok": true }

Errors

HTTPWhen
400 invalid_requestPath outside Features//Configurations/, contains .., or names a template file.
404 not_foundNo stored file at that path.