Delete a dataset

Deletes the dataset and all data with the given id.

DELETE https://api.geckoboard.com/datasets/:id

Example

curl -X DELETE \
     -u '222efc82e7933138077b1c2554439e15:' \
     https://api.geckoboard.com/datasets/sales.by_day

Response:

{}

Deletes the dataset and all data therein.

dataset.delete(callback);
Attribute Type Required?
callback Function No
    error Error | Null No

Deletes the dataset and all data with the given id.

client.datasets.delete(id)

Example

client.datasets.delete('sales.by_day') # => true

You can also delete a dataset by calling the #delete method on an instance of Geckoboard::Dataset.

dataset = client.datasets.find_or_create(...)
dataset.delete # => true

Deletes the dataset and all data with the given id.

client.datasets.delete(dataset_id)

Example

dataset = client.datasets.find_or_create(...) dataset.delete() # => true

You can also delete a dataset by calling the delete method on a dataset.

dataset = client.datasets.find_or_create(...) dataset.delete() # => true
Was this article helpful?

Awesome! 👍  Thanks so much for your feedback!