Delete a memory store
client.Beta.MemoryStores.Delete(ctx, memoryStoreID, body) (*BetaManagedAgentsDeletedMemoryStore, error)DELETE/v1/memory_stores/{memory_store_id}
Delete a memory store
package main
import (
"context"
"fmt"
"github.com/anthropics/anthropic-sdk-go"
"github.com/anthropics/anthropic-sdk-go/option"
)
func main() {
client := anthropic.NewClient(
option.WithAPIKey("my-anthropic-api-key"),
)
betaManagedAgentsDeletedMemoryStore, err := client.Beta.MemoryStores.Delete(
context.TODO(),
"memory_store_id",
anthropic.BetaMemoryStoreDeleteParams{},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", betaManagedAgentsDeletedMemoryStore.ID)
}{
"id": "id",
"type": "memory_store_deleted"
}Returns Examples
{
"id": "id",
"type": "memory_store_deleted"
}