Delete an Adventure World under the current primary account. When the World no longer exists under the same account, it returns deleted=false idempotently.
Scope
Delete an Adventure World under the current primary account. Before calling, confirm the following:
-
Authentication: Only the primary API Key is supported; temporary API Keys cannot be used (error code
403003).- Get the primary API Key: Get and configure an API Key.
-
Prerequisites: Delete with the
encryptedWorldIdreturned by Create World. -
Caller: Called by your server. This endpoint does not accept the request body field
userAgent.
HTTP request
- Singapore
- China (Beijing)
- US (Virginia)
POST https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/api/v2/apps/happyoyster-1.0-adventure/openapi/v1/worlds/deleteReplace {WorkspaceId} with your actual Workspace ID.Request parameters |
|
Content-Typestring(Required)Request content type. This parameter must be set to application/json. | |
Authorization string (Required)API Key authentication. Only the primary API Key is supported; it starts with sk-, e.g. sk-xxx. It is typically configured as the environment variable $DASHSCOPE_API_KEY. A temporary API Key (starting with st-) returns 403003. | |
Request Body | |
encryptedWorldId string (Required)The Adventure encrypted World ID to delete. Returned by Create World. |
Response parameters |
|
code integerReturn code. 0 means success; non-zero is an error code. | |
message stringError message. null on success. | |
data objectResponse data. null on failure.
Properties encryptedWorldId stringThe encrypted World ID from the request.deleted booleantrue means it was deleted; false means no World was deleted this time. |
Prerequisite states and call notes
- When the World no longer exists under the same account, it returns
code=0anddeleted=false, not403001. - When the ID is parseable but crosses accounts, does not match the workspace, or the resource is not an Adventure World,
403001is returned. - After deletion, subsequent detail, build-status, or credential-exchange calls are handled as a non-existent resource.
Error codes
If the model call fails and returns an error, see HappyOyster Error Codes to resolve it.
Next steps
- Query World List: view the remaining Adventure Worlds.
- Create World: create a new Adventure World.