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!

Sorry about that! Start a conversation now.

We're ready to help, 24 hours a day, 5 days a week

Get support
  • Fernanda Customer Success Avatar

    Megan

    USA
  • Hariharan Customer Success Avatar

    Hariharan

    India
  • Fernanda Customer Success Avatar

    Yasmin

    Spain
  • Luis Customer Success Avatar

    Luis

    UK
  • Richard Customer Success Avatar

    Richard

    UK
  • Fernanda Customer Success Avatar

    Fernanda

    Brazil
  • Heather Customer Success Avatar

    Heather

    USA