Delete a Telemetry Destination
DELETE/v1/organizations/telemetry_destinations/{destination_id}
Delete a destination and its workspace list.
The API stops sending spans to the destination. The spans of the workspaces it covered still go to the other destinations that cover them. A deleted destination can't be read, listed, or restored.
See the OpenTelemetry export guide to learn more about managing a destination.
Parameters
Returns
Delete a Telemetry Destination
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"),
)
betaDeletedTelemetryDestination, err := client.Beta.Organization.TelemetryDestinations.Delete(
context.TODO(),
"destination_id",
anthropic.BetaOrganizationTelemetryDestinationDeleteParams{},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", betaDeletedTelemetryDestination.ID)
}Response 200
{
"id": "id",
"type": "telemetry_destination_deleted"
}Returns Examples
Response 200
{
"id": "id",
"type": "telemetry_destination_deleted"
}