Delete one source file
DELETE
Deletes one file of the working copy. Snapshots keep their own copy of it. Deleting a file that is not there succeeds with deleted: false.
Requires an API key with the workspace:write scope.
apiKeyheader
AuthorizationBearer <token>A secret API key from the dashboard (Developers → API keys): vl_live_…, or vl_test_… for test mode. Each operation says which scope the key needs.
id*stringThe agent id.
path*stringThe file to delete.
Length
1 <= length <= 512Whether a file was deleted
application/json- response
deleted*booleantotalBytes*integerRange
0 <= valuecurl -X DELETE "https://api.vlayers.ai/v1/agents/$AGENT_ID/source/file?path=src/old.ts" \ -H "Authorization: Bearer $VOICELAYER_API_KEY"Example Response
{ "deleted": true, "totalBytes": 1204}