I know there is an option for this in the UI but I need to clear all metrics for datasets programmatically. The reason is that in my current set up, metrics are being computed every time a dataset has been rebuild.
So with every new build, the metrics of each run are getting stored but I am only interested in the latest version.
I have tried the following but the metrics were not cleared.
project = client.get_default_project()
# clear metrics
dataset.get_settings().get_raw()["metrics"] = 
Operating system used: Mac