- Basic Information Terminology, getting started and setting up your account. Recommended for new customers.
- Make your website social Step-by-step tutorials and information on how to integrate our plugins and services to your site.
- REST API Reference JSON/REST API for advanced social network integration. Must-read for developers.
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.