DeleteWorkspaceCode
Deletes a code file or directory from a workspace.
Operation description
This operation permanently removes a specified code file or directory.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| WorkspaceId |
string |
Yes |
The ID of the workspace. |
12**** |
| Path |
string |
Yes |
The full path of the code file or directory. The path must be prefixed with |
/Workspace/code/default/test.ipynb |
| Repo |
string |
No |
The repository information. |
database/adb |
| Symlink |
boolean |
No |
Specifies whether the item to delete is a symbolic link. |
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| Message |
string |
The error message returned when the request fails. |
This record is being collected, please wait for a moment. |
| RequestId |
string |
The request ID. |
E0D21075-CD3E-4D98-8264-FD8AD04A63B6 |
| ErrorCode |
string |
The error code. |
InvalidTid |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"Message": "This record is being collected, please wait for a moment.",
"RequestId": "E0D21075-CD3E-4D98-8264-FD8AD04A63B6",
"ErrorCode": "InvalidTid",
"HttpStatusCode": 200,
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IdempotentParameterMismatch | The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.