Skip to main content
Delete a billable metric when you no longer use it to measure usage. Before deleting it, review where it is used: the change affects every Plan and Contract that uses the metric for billing.

Before you delete

A billable metric used by a Product filter cannot be deleted. Remove the Product filter before deleting the metric.
Deleting a billable metric is irreversible. Review the affected Plans and Contracts before continuing.

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_at set.

Delete the metric

How to delete a billable metric

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}