This message was deleted.
# give-feedback
w
This message was deleted.
b
Related feature requests for the Metrics overview page, it would be great to have: ā€¢ Filter by Project or Data source ā€¢ Bulk-edit (change project, archive, delete)
f
Thanks David - we'll take a look
šŸ‘ 1
b
Hi @fresh-football-47124! Any news on this? We would like to delete a data source, and ~400 metric is connected to it, which are already archived. Can we somehow delte them all? Thank you! šŸ™‚
r
Hi Anna, Good morning and thank you for your response. As you are aware, to switch a data source, you'll first have to remove the metrics, and then re-add the metrics to the new data source. I will have to be the bad news bear here as unfortunately, this isn't the best UI design on our end (I apologise for that), as currently the UI does not have the functionality to bulk delete. That being said, we do have the functionality to bulk delete metrics by leveraging the REST API - you can use the REST API endpoint ā€‹`DELETE /metrics/{id}`ā€‹. Let me walk you through how to achieve this: 1) Send a DELETE request to the endpoint ā€‹`/metrics/{id}`ā€‹, where ā€‹`{id}`ā€‹ is the ID of the metric you want to delete. 2) The ā€‹`id`ā€‹ parameter is required and should be included in the URL. It represents the ID of the metric you want to delete. 3) The ā€‹`Accept`ā€‹ header is optional and its type is string. Here is an example of how the request might look like:
Copy code
DELETE /metrics/{id}
Accept: application/json
In the above, please replace ā€‹`{id}`ā€‹ with the actual ID of the metric you want to delete. The server will respond with a status code of 200 if the operation is successful. The response will be an object, but the schema is not specified in the documentation. Please note that this operation does not require authentication. For deleting a fact metric, you can use a similar endpoint ā€‹`DELETE /fact-metrics/{id}`ā€‹. Please refer to the ā€‹*GrowthBook REST API documentation*ā€‹ for more details. In parallel to the above, you may wish to upvote this public facing feature suggestion for the ability to bulk delete via the UI here. Hope this helps and please let me know if you run into any issues when running the API, we are on hand to help debug :)
b
Hi @flaky-noon-11399 thank you for your help! šŸ™‚ Unfortunately API would be more difficult at this time, but I will keep in mind this solution. And also good to know to not to look further on the UI! šŸ™‚ Thanks again!
r
Hi Anna, it was my absolute pleasure to assist and sorry I dont have the best of news about this functionality being available on the UI šŸ™ˆ If you later want to revisit the API route we can help debug any blockers you may face. We are on hand to help šŸŒ¼
b
Thank you! ā¤ļø
ā¤ļø 1
youre welcome 1