Delete a chart

DELETE
https://api.datawrapper.de/v3/charts/{id}

The action moves a chart to the trash. Charts in the trash are deleted permanently after 30 days. If used with the ?permanent=true flag, the chart is deleted permanently and cannot be restored. If this endpoint should be used in an application (CMS), it is recommended to ask the user for confirmation. Requires scope chart:write.

Example Request

curl --request DELETE \
  --url 'https://api.datawrapper.de/v3/charts/example-id?permanent=true' \
  --header 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Path Parameters

NameTypeAllowed valuesRequiredDescription
idstring
5 characters
Yes5 character long chart ID.

Query Parameters

NameTypeRequiredDescription
permanentbooleanNoPermanently delete the chart.