Management APIs
Destinations API
Delete Destination
3min
delete destination destinations can be deleted by making an http delete request to the /destinations/destination id endpoint (where destination id is the id of the destination you wish to delete) example delete delete /destinations/destination id in the example below we delete a destination with id=abcdefg $ curl x delete "https //api serpwow\ com/live/destinations/abcdefg?api key=demo"const axios = require('axios'); const params = { api key 'demo' } axios delete('https //api serpwow\ com/live/destinations/abcdefg', { params }) then(response => { console log('destination deleted '); }) catch(error => { console log(error); });import requests import json api result = requests delete('https //api serpwow\ com/live/destinations/abcdefg?api key=demo') print ("destination deleted ")\<?php $querystring = http build query(\[ 'api key' => 'demo', ]); $ch = curl init(sprintf('%s?%s', 'https //api serpwow\ com/live/destinations/abcdefg', $querystring)); curl setopt($ch, curlopt returntransfer, true); curl setopt($ch, curlopt followlocation, true); \# the following options are required if you're using an outdated openssl version \# more details https //www openssl org/blog/blog/2021/09/13/letsencryptrootcertexpire/ curl setopt($ch, curlopt ssl verifyhost, false); curl setopt($ch, curlopt ssl verifypeer, false); curl setopt($ch, curlopt timeout, 180); curl setopt($ch, curlopt customrequest, "delete"); $json = curl exec($ch); curl close($ch); echo "destination deleted ", php eol; ?> serpwow responds with a json object confirming that the destination has been deleted, or detailing the error if it has not been possible to delete the destination { "request info" { "success" true, "message" "1 destination deleted" } } next steps list destinations https //docs trajectdata com/serpwow/destinations api/list update destination https //docs trajectdata com/serpwow/destinations api/update