Delete a memory
BetaManagedAgentsDeletedMemory beta().memoryStores().memories().delete(MemoryDeleteParamsparams, RequestOptionsrequestOptions = RequestOptions.none())DELETE/v1/memory_stores/{memory_store_id}/memories/{memory_id}
Delete a memory
Parameters
Returns
Delete a memory
package com.anthropic.example;
import com.anthropic.client.AnthropicClient;
import com.anthropic.client.okhttp.AnthropicOkHttpClient;
import com.anthropic.models.beta.memorystores.memories.BetaManagedAgentsDeletedMemory;
import com.anthropic.models.beta.memorystores.memories.MemoryDeleteParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
AnthropicClient client = AnthropicOkHttpClient.fromEnv();
MemoryDeleteParams params = MemoryDeleteParams.builder()
.memoryStoreId("memory_store_id")
.memoryId("memory_id")
.build();
BetaManagedAgentsDeletedMemory betaManagedAgentsDeletedMemory = client.beta().memoryStores().memories().delete(params);
}
}{
"id": "id",
"type": "memory_deleted"
}Returns Examples
{
"id": "id",
"type": "memory_deleted"
}