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
| Name | Type | Allowed values | Required | Description |
|---|---|---|---|---|
id | string | 5 characters | Yes | 5 character long chart ID. |
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
permanent | boolean | No | Permanently delete the chart. |