DeleteWorkspaceCode

Updated at:

Deletes a code file or directory from a workspace.

Operation description

This operation permanently removes a specified code file or directory.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

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/.

/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: The request was successful.

  • false: The request failed.

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.