Skip to main content

Overview

Permanently delete a dynamic link from your project. This action is irreversible and will remove all associated data, including analytics and click history. Consider using the Update Link Status endpoint to archive links instead if you want to preserve data.

Endpoint

DELETE https://api.bit2connect.com/1.0/links/{code}

Path Parameters

For detailed information about path parameters, see the Delete Link API Reference.

Example Request

curl -X DELETE "https://api.bit2connect.com/1.0/links/old-campaign" \
  -H "X-API-KEY: b2co_your_api_key_here"

Response

Success Response

{
  "success": true,
  "message": "Link deleted successfully",
  "timestamp": "2024-01-15T11:45:00Z"
}

Error Response

{
  "success": false,
  "error": {
    "code": "LINK_NOT_FOUND",
    "message": "Link with the specified code was not found"
  }
}
For detailed response fields, error codes, and deletion considerations, see the Delete Link API Reference.

Next Steps