Deleting a Visualization

You can not just create & edit visualizations with our API, but also delete them.

❗️

Needless to say, this is a destructive action.
Please be extra careful to delete the correct chart. For example, make sure to double-check the ID of the visualization you want to delete.

Delete a visualization

Charts can be deleted using the following request. Make sure to replace the <ID> with your chart ID (a 5 chracter ID like "384dj") and the <YOUR_TOKEN_HERE> with your API Access Token:

curl --request DELETE \
  --url https://api.datawrapper.de/v3/charts/<ID> \
  --header 'Authorization: Bearer <YOUR_TOKEN_HERE>'

If successful, the response will be empty.
If not successful, you will get an error message.

Check if you deleted the visualization

To double-check if you really deleted the visualization, you can GET request information about it:

curl --request GET \
  --url https://api.datawrapper.de/v3/charts/<ID> \
  --header 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Datawrapper won't find any information about this visualization anymore, *if you deleted it. So the response will be an error:

{
  "statusCode": 404,
  "error": "Not Found",
  "message": "Not Found"
}%