Claude Platform Docs

Excluir um destino de telemetria

$client->beta->organization->telemetryDestinations->delete(string destinationID, ?list<AnthropicBeta> betas): DeletedTelemetryDestination
DELETE/v1/organizations/telemetry_destinations/{destination_id}
Requires anthropic-beta: telemetry-destinations-2026-08-11. How to send beta headers

Exclui um destino e sua lista de workspaces.

A API para de enviar spans ao destino. Os spans dos workspaces que ele cobria continuam indo para os outros destinos que os cobrem. Um destino excluído não pode ser lido, listado nem restaurado.

Consulte o guia de exportação do OpenTelemetry para saber mais sobre como gerenciar um destino.

Parameters
destinationID: string⁠Path parameter

ID of the destination (tdst_...).

betas?: optional list<AnthropicBeta>⁠Header parameter

This endpoint is in beta: requests must send telemetry-destinations-2026-08-11 in this header.

Returns
class DeletedTelemetryDestination { $type = 'telemetry_destination_deleted'; $id; }
"telemetry_destination_deleted" type
string id

ID of the deleted destination (tdst_...).

Excluir um destino de telemetria
<?php

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

use Anthropic\Client;
use Anthropic\Beta\AnthropicBeta;

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

$betaDeletedTelemetryDestination = $client
  ->beta
  ->organization
  ->telemetryDestinations
  ->delete(
  'destination_id', betas: [AnthropicBeta::MESSAGE_BATCHES_2024_09_24]
);

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