benvinegar / counterscale

Scalable web analytics you run yourself on Cloudflare
https://counterscale.dev
MIT License
1.51k stars 66 forks source link

How should I delete the incorrectly set your-unique-site-id? #97

Open KunBuFenZi opened 2 months ago

KunBuFenZi commented 2 months ago

image I mistakenly set up these two, how should I delete them?

benvinegar commented 2 months ago

I'm afraid there's no way to delete individual rows out of Analytics Engine (the data store behind Counterscale), so you have two choices:

1) Delete and re-create your Analytics Engine dataset (you'll lose everything / start fresh) 2) Let the data "age out" (wait 90 days) and it will no longer appear in that list

I suppose in the future we could put the sites in KV or some other Cloudflare data store, and you can do some light management, but that would add complexity.

KunBuFenZi commented 1 month ago

恐怕无法从 Analytics Engine(Counterscale 后面的数据存储)中删除单个行,因此您有两种选择:

  1. 删除并重新创建 Analytics Engine 数据集(您将丢失所有内容/重新开始)
  2. 让数据“过期”(等待 90 天),它将不再出现在该列表中

我想将来我们可以将 KV 或其他一些 Cloudflare 数据存储放在 KIN 中,你可以做一些轻量级管理,但这会增加复杂性。sites

How can i delete them? i didnt see the delete button,and when i try to use api ,it shows error

root@iZj6c0m028f1d1jlvanzhiZ:~# curl --request DELETE \

https://api.cloudflare.com/client/v4/accounts/805xxxxxxxxxxxxxxxxxxx/rulesets/metricsDataset \ --header "Authorization: Bearer i5_oblTgxxxxxxxxxxxxxxxxxxxxxxx" {"success":false,"errors":[{"code":10000,"message":"Authentication error"}]}

benvinegar commented 1 month ago

@KunBuFenZi Okay, this is very fair, I thought there was a way to delete this in the UI but it appears not. I don't see any obvious documentation in Cloudflare either.

cc @irvinebroque

benvinegar commented 1 month ago

After more digging, I found it here:

image

To get here, go to: Workers & Pages → Find and click counterscale → Settings.