DeleteMemoryNode
Deletes a memory fragment.
Try it now
You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful run, OpenAPI Explorer can automatically generate SDK code examples.
RAM authorization
The following table describes the authorization information for this API. You can use it in the Action element of a RAM policy statement to grant RAM users or RAM roles the permission to call this API. Details are as follows:
-
Operation: the specific permission point.
-
Access level: the access level of each operation. Valid values: Write, Read, or List.
-
Resource type: the resource types that support authorization in the operation. Details are as follows:
- For required resource types, an asterisk (*) is added before them.
- For operations that do not support resource-level authorization,
All resourcesis used.
-
Condition key: the condition keys defined by the cloud service itself.
-
Dependent action: other permissions required to successfully perform the operation. The caller must have the permissions of all dependent actions for the operation to succeed.
| Operation | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
| sfm:DeleteMemoryNode | delete | *All resources * |
| None |
Endpoint
/{workspaceId}/memories/{memoryId}/memoryNodes/{memoryNodeId}Path parameters
workspaceIdstringRequiredThe workspace ID.
memoryIdstringRequiredThe long-term memory ID.
memoryNodeIdstringRequiredThe memory fragment ID.
Response fields
Schema of Response
requestIdstringThe request ID.
Response example
Success response
JSON format
{
"requestId": "8C56C7AF-6573-19CE-B018-E05E1EDCF4C5"
}
Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 400 | Memory.MemoryNodeContentInvalid | Memory node content is invalid. | Memory node content is invalid. |
| 404 | Memory.MemoryIdNotFound | Memory Id not exist or is not authorized. | memoryId not found. |
| 404 | Memory.MemoryNodeNotFound | MemoryNode not found. | Memory node not found. |
| 500 | Memory.InternalError | Memory service inner exception. | Memory service internal exception. |
Visit the Error Center to view more error codes.