Deletes a workspace.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DeleteLakeHouseSpace

The operation that you want to perform. Set the value to DeleteLakeHouseSpace.

SpaceId Long Yes 24

The ID of the workspace. You can call the GetLhSpaceByName operation to obtain the workspace ID.

Tid Long No 3***

The ID of the tenant. You can call the GetUserActiveTenant or ListUserTenants operation to obtain the tenant ID.

RegionId String No cn-hangzhou

The ID of the region in which Data Management (DMS) is activated. For more information, see RegionID parameter.

Response parameters

Parameter Type Example Description
RequestId String E76DD2E7-EBAC-5724-B163-19AAC233F8F2

The ID of the request.

ErrorCode String NoPermission

The error code returned if the request fails.

ErrorMessage String You are not authorized to perform this operation.

The error message returned if the request fails.

Success Boolean true

Indicates whether the request is successful. Valid values:

  • true: The request is successful.
  • false: The request fails.

Examples

Sample requests

http(s)://dms-enterprise.aliyuncs.com/?Action=DeleteLakeHouseSpace
&SpaceId=24
&Tid=3***
&Common request parameters

Sample responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DeleteLakeHouseSpaceResponse>
    <RequestId>E76DD2E7-EBAC-5724-B163-19AAC233F8F2</RequestId>
    <Success>true</Success>
</DeleteLakeHouseSpaceResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "E76DD2E7-EBAC-5724-B163-19AAC233F8F2",
  "Success" : true
}

Error code

For a list of error codes, visit the Error Center.