Before you delete
A billable metric used by a Product filter cannot be deleted. Remove the Product filter before deleting the metric.What happens when you delete a metric
When you delete a billable metric, Lago:- Removes its associated pricing and alerts, so the usage it measures is no longer billed.
- Marks draft invoices containing fees for the metric for refresh.
- Returns the deleted metric with
deleted_atset.
Delete the metric
- Dashboard
- API

Filters and dimensions
Define which groups of usage you want to measure.
Metered products
Products that use the metric.
Delete a billable metric (API)
DELETE /billable_metrics/{code}Retrieve a billable metric (API)
GET /billable_metrics/{code}