-
Notifications
You must be signed in to change notification settings - Fork 18
buildin_endpoints_delete_workspace_path
Marcel Kloubert edited this page Feb 10, 2017
·
4 revisions
Home >> Build-in endpoints >> [DELETE] /api/workspace/{path}
Deletes a file or folder inside the workspace.
canDelete property must be set to (true)
for an user or guest in the settings to access the endpoint.
Request:
DELETE /api/workspace/test.html
Possible response:
Content-type: application/json; charset=utf-8
X-vscode-restapi-type: file
Content-encoding: gzip
X-Vscode-Restapi: 1.0.0
Date: Thu, 09 Feb 2017 21:11:57 GMT
Connection: keep-alive
Transfer-Encoding: chunked
{
"code": 0
}
Code | Description |
---|---|
403 |
User has no right to delete the item. |
404 |
Item does not exist. |