Delete an Acting World under the current primary account. When the World no longer exists under the same account, it returns deleted=false idempotently.
Scope
Delete an Acting 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
POST https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/api/v2/apps/happyoyster-1.0-acting/openapi/v1/worlds/delete
Replace {WorkspaceId} with your actual Workspace ID.
US (Virginia)
POST https://{WorkspaceId}.us-east-1.maas.aliyuncs.com/api/v2/apps/happyoyster-1.0-acting/openapi/v1/worlds/delete
Replace {WorkspaceId} with your actual Workspace ID.
Request parameters | Delete World |
Content-Type Request content type. This parameter must be set to | |
Authorization API Key authentication. Only the primary API Key is supported; it starts with | |
Request Body | |
encryptedWorldId The Acting encrypted World ID to delete. Returned by Create World. |
Response parameters | Deleted successfullyWorld no longer exists |
code Return code. | |
message Error message. | |
data Response data. |
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 Acting World,
403001is returned. - After deletion, subsequent detail, build-status, or credential-exchange calls are handled as a non-existent resource.
- An issued but unused ticket should not be treated as a long-term valid reference; the World's availability is still re-validated when entering the room.
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 Acting Worlds.
- Create World: create a new Acting World.