Skip to content
NewDatafor 10.02 is out: subscriptions and metric alerts, in Slack and Teams
Datafor

Dictionaries

Delete a dictionary

Delete a data dictionary by name or ID.

Deletes a data dictionary. Models that use it as a member formatter are not changed, so check where it is used first.

Method and path POST /plugin/datafor-modeler/api/dict/delete
Permission The dictionary’s creator, or an administrator
Content type application/x-www-form-urlencoded

Parameters

Name In Type Required Description
name form string name or id Dictionary name.
id form string name or id Dictionary ID. When both are sent, both must match.

Example

curl -u admin:password -X POST \
  "http://localhost:28080/datafor/plugin/datafor-modeler/api/dict/delete" \
  --data-urlencode "name=product_names"
{ "success": true, "msg": "success" }

The response is also success: true when nothing was deleted, for example because the name does not exist or the dictionary belongs to another user. Confirm with Get dictionaries.

Errors

msg When
one condition at least Neither name nor id was sent.

Related: Data Dictionary