Claude Platform Docs

Excluir um armazenamento de memória

$client->beta->memoryStores->delete(string memoryStoreID, ?list<AnthropicBeta> betas, ?string workspaceID): BetaManagedAgentsDeletedMemoryStore
DELETE/v1/memory_stores/{memory_store_id}

Excluir um armazenamento de memória

Parameters
memoryStoreID: string
betas?:optional list<AnthropicBeta>

Optional header to specify the beta version(s) you want to use.

workspaceID?:optional string
Returns
class BetaManagedAgentsDeletedMemoryStore { $type; $id; }
Type type
string id

ID of the deleted memory store (a memstore_... identifier). The store and all its memories and versions are no longer retrievable.

Excluir um armazenamento de memória
<?php

require_once dirname(__DIR__) . '/vendor/autoload.php';

$client = new Client(apiKey: 'my-anthropic-api-key');

$betaManagedAgentsDeletedMemoryStore = $client->beta->memoryStores->delete(
  'memory_store_id',
  betas: [AnthropicBeta::MESSAGE_BATCHES_2024_09_24],
  workspaceID: 'wrkspc_011CZkZaBF1tNoB5wlCeusgy',
);

var_dump($betaManagedAgentsDeletedMemoryStore);
Returns Examples
Response 200
{
  "id": "id",
  "type": "memory_store_deleted"
}