1. Trackers
  2. Delete Tracker

Trackers

Delete Tracker

DELETE
`/v1/trackers/:tracker`

Permanently removes a tracker from your organization. This action also publishes a deletion event that initiates comprehensive notifications across configured webhooks. Once deleted, a tracker cannot be recovered.

js
        const res = await fetch("https://api.packagex.io/v1/trackers/track_czhgjrk5JaVvyATPDbyURp", {
  method: "DELETE",
  headers: {
    "PX-API-KEY": process.env.PX_API_KEY,
    "Content-Type": "application/json",
  },
}).then((res) => res.json());

      

Upon successful deletion, the API returns a success response:

js
        {
  "data": {
    "success": true
  },
  "message": "Tracker deleted"
}

      

If the specified tracker ID doesn't exist or belongs to a different organization, the API will return a 404 error.