메모리 삭제
메모리 삭제
Parameters
MemoryDeleteParams parameters
Path param: Path parameter memory_store_id
Path param: Path parameter memory_id
Query param: Query parameter for expected_content_sha256
IReadOnlyList<AnthropicBeta> betasHeader param: Optional header to specify the beta version(s) you want to use.
Header param: Optional header to specify the beta version(s) you want to use.
string workspaceIDHeader param: Optional header to select the Workspace for this request. The value is a Workspace ID (for example, wrkspc_011CZkZaBF1tNoB5wlCeusgy).
Header param: Optional header to select the Workspace for this request. The value is a Workspace ID (for example, wrkspc_011CZkZaBF1tNoB5wlCeusgy).
Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.
Returns
class BetaManagedAgentsDeletedMemory { Type; ID; }Tombstone returned by Delete a memory. Deleting a memory does not erase its version history: its versions remain listable via List memory versions while they are retained (each version is kept for at least the version retention period after it was written, unless the store itself is deleted).
Tombstone returned by Delete a memory. Deleting a memory does not erase its version history: its versions remain listable via List memory versions while they are retained (each version is kept for at least the version retention period after it was written, unless the store itself is deleted).
ID of the deleted memory (a mem_... value).
MemoryDeleteParams parameters = new()
{
MemoryStoreID = "memory_store_id",
MemoryID = "memory_id",
};
var betaManagedAgentsDeletedMemory = await client.Beta.MemoryStores.Memories.Delete(parameters);
Console.WriteLine(betaManagedAgentsDeletedMemory);{
"id": "id",
"type": "memory_deleted"
}Returns Examples
{
"id": "id",
"type": "memory_deleted"
}