Skip to content

dataset.delete

Note

This document has been machine translated.

Deletes a data set.

This method deletes the specified dataset and all accompanying citations. If you want to keep the dataset and citation information, use dataset.record.delete instead of this method.

Parameters

  • dataset_name: string -- dataset name.

Return Values

The dataset information of the deleted dataset is returned. See dataset_info for details.

Execution example

Request Data

{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "dataset.delete",
    "params": {
      "dataset_name": "my_dataset"
    }
}

Request Execution

curl -H "Content-type: application/json" \
     -H "APIKey: 9c6f4574-89d1-4e3c-8af7-2549dc217fcf" \
     -H "Secret: aef8caingiej1ieNieJ3Phool4maeGohcies" \
     -X POST -d "@request.json" \
     https://localhost/api/v2/dataset/jsonrpc

Response

{
  "result": {
    "id": 4,
    "session_id": null,
    "usename": "evwh_admin",
    "ddc_type": "table",
    "short_form": "my_dataset",
    "long_form": "my_dataset_1752027386.663599",
    "realname": "provenance.prov_6d2f3dd4fbffeeac9ebc22a69b741210",
    "created_at": {
      "_type": "datetime",
      "val": "2025-07-09T11:16:26.663599+09:00"
    },
    "committed_at": null,
    "prepared_activity_id": null
  },
  "id": 1,
  "jsonrpc": "2.0"
}