Documentation
Tracing and exports
View .mdOpenAPI

Remove a trace destination

DELETEhttps://weights.fyi/run/v1/trace-sinks/{sink_id}scope: manage
text
DELETE https://weights.fyi/run/v1/trace-sinks/<sink_id>
Authorization: Bearer <token>                    scope: manage
Available since
2026-10-08, when the service went live on weights.fyi/run.
Answer time
synchronous: the destination and its waiting spans are removed before the answer comes.

Removes a trace destination. From the moment of the answer nothing more is sent to it, and the spans that were still waiting for it are dropped with it: a destination you delete does not catch up later. Your spans themselves are not touched. They stay in the service's records, in the job log and in GET /v1/traces, and any other destination you have keeps receiving them.

Use it when an address moves, when a collector is retired, or to make room under the limit of 6 destinations an account may have. There is no call to change a destination's address or headers: delete it and add a new one with POST /v1/trace-sinks. If what you want is to stop all deliveries for a while, the Tracing and tracking switch on your panel, /app, pauses every destination and keeps them for later, which deleting does not. A destination that is not yours answers exactly as one that does not exist, 404 sink_not_found, and so does a destination you already deleted. That makes a repeated delete after a lost answer safe: the second answer is a 404, and the destination is gone either way.

Request

NameWhereRequiredMeaning
AuthorizationheaderyesBearer and your token. The token needs the manage scope.
sink_idpathyesThe destination's number, the id that GET /v1/trace-sinks lists.

Return value

200 OK with one field.

FieldMeaning
deletedThe number of the destination that was removed.

Errors

StatusCodeWhen it happensWhat to do
401unauthorized, invalid_token, token_revoked, token_expiredNo token, or one that does not work (any more).Use a valid token.
403scope_required, account_suspendedThe token lacks manage, or the account is suspended.Use a token with manage.
404sink_not_foundThere is no such destination in your account, or it was already deleted.Check the number with GET /v1/trace-sinks.

Examples

sh
curl -s -X DELETE https://weights.fyi/run/v1/trace-sinks/SINK_ID -H "Authorization: Bearer $WEIGHTS_API_KEY"
json
{"deleted": 1}

History

  • 2026-10-08: live with the service.

See also