Overview
Deletes a specified memory space. The deletion may involve removing other resources within that space; the specific cascading strategy is subject to the server implementation.
API details
Constraints
- The caller must have an API Key. For more information, see Manage AI API Keys.
Request path
DELETE {BASE_URL}/api/v1/memory/spaces/{spaceId}
Request headers
Name |
Required |
Example Value |
Description |
|---|---|---|---|
| Authorization | Yes | Bearer {token} | Authentication Information |
| X-OB-Project-ID | Yes | your-project-id | Project ID |
| Content-Type | No | application/json | Request Body Format |
Request parameters
Path parameters
Name |
Type |
Whether required |
Example Value |
Description |
|---|---|---|---|---|
| spaceId | string | Yes | space-123 | Memory space ID. |
Response
Response parameters
Name |
Type |
Description |
|---|---|---|
| success | boolean | Whether the request was successful |
| code | string | Response Code |
| message | string | Response parameters |
| data | object | Business response data |
Data field description
When the request is successful, the data field is null.
Request example
curl --request DELETE '{BASE_URL}/api/v1/memory/spaces/space-123456' \
--header 'Authorization: Bearer {token}' \
--header 'X-OB-Project-ID: your-project-id'
Response example
{
"success": true,
"code": "200",
"message": "successful",
"data": null
}
