CA
continuing-cyan
How to modify the dataset
I want to modify the dataset, remove all old data and save a modified version of the data as json. Doing
await Dataset.pushData(myModifiedData)
will add the data but doesnt remove old data4 Replies
continuing-cyanOP•2y ago
I tried this but I get TypeError: Dataset.drop is not a function
you can try:
quickest-silver•2y ago
yeah, you should .drop() a specific instance, so what Honza says. Keep in mind though - that if you do it on the platform - you will delete dataset entirely - so you would need to open another one before pushing data to it. Dataset is read-only/append-only storage
and also keep in mind that the new one will have different id