Delete Destination
3 min
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 /destinations/DESTINATION_ID
In the example below we delete a Destination with id=ABCDEFG :
$ curl -X DELETE "https://api.countdownapi.com/destinations/ABCDEFG?api_key=demo"Countdown API 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 Update Destination