Short Links · link.destroy
DELETE/link/{id}link.destroy
Delete a short link
Removes the short link. Traffic to it stops resolving once the change propagates.
- Base URL
- https://api.redirhub.com/v1
- Auth
- Bearer token
- Idempotent
- Yes
- Returns
- application/json
The request
Call DELETE /link/{id} with your bearer token. The id path segment identifies the record.
# Delete a short link
curl -X DELETE "https://api.redirhub.com/v1/link/9f2a7c31-4b8e-4a02-9d1f-0c6b7e5a1d44" \
-H "Authorization: Bearer $REDIRHUB_TOKEN"Path parameters
| Parameter | Description |
|---|---|
| idRequiredstring |
The response
A 204 returns the record as JSON.
{
"message": "The given data was invalid."
}Status codes
204
No contentNo content
401
UnauthenticatedUnauthenticated
429
Too many requestsToo many requests
484
Bad requestThe workspace role of the authenticated user is too low for this action.
What usually comes next
One call is rarely the whole job. These are the endpoints most integrations reach for around this one.
