Shorturl API \ Delete a shorturl

Send a DELETE request to the following resource to delete an existing Shorturl.

Resource/URI GET POST PUT DELETE
Shorturls /shorturls.<format> List all Shorturls Create a new Shorturl
Shorturl /shorturls/<shorturl_token>.<format> Read details of a Shorturl Delete a Shorturl

Workflow

1. Request: the code to send to the API

Send a DELETE request to the resource /shorturls/<shorturl_token>.<format> to delete an existing entry. The shortened url and the tracked clicks will instantly be removed. Please take into consideration that a shortened URL will no long work after having been deleted!

To prevent you from unintentionally deleting am entry by mixing up the DELETE/GET methods you have to include the url parameter confirm_deletion=true in your DELETE requests. If you omit this parameter, the entry will not be removed and an error will be thrown.

2. Result: the code returned by the API

If the entry has been deleted successfully, the API will return a HTTP Status Code 200. If the entry could not be deleted, the API will return a HTTP Status Code other than 200 and an appropriate message body with further details on the error that occured.