Remove a trace destination
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
| Name | Where | Required | Meaning |
|---|---|---|---|
Authorization | header | yes | Bearer and your token. The token needs the manage scope. |
sink_id | path | yes | The destination's number, the id that GET /v1/trace-sinks lists. |
Return value
200 OK with one field.
| Field | Meaning |
|---|---|
deleted | The number of the destination that was removed. |
Errors
| Status | Code | When it happens | What to do |
|---|---|---|---|
401 | unauthorized, invalid_token, token_revoked, token_expired | No token, or one that does not work (any more). | Use a valid token. |
403 | scope_required, account_suspended | The token lacks manage, or the account is suspended. | Use a token with manage. |
404 | sink_not_found | There is no such destination in your account, or it was already deleted. | Check the number with GET /v1/trace-sinks. |
Examples
curl -s -X DELETE https://weights.fyi/run/v1/trace-sinks/SINK_ID -H "Authorization: Bearer $WEIGHTS_API_KEY"{"deleted": 1}History
- 2026-10-08: live with the service.
See also
- GET /v1/trace-sinks and POST /v1/trace-sinks.
- Tracing and exports, the topic.