Skip to main content
DELETE
DELETE /v1/metrics/{id}

Delete a Metric

Delete a metric by UUID or fully qualified name. By default, the API soft-deletes the metric for later restoration. A hard delete permanently removes it.

Delete by ID

string
required
UUID of the metric to delete.
boolean
default:"false"
Permanently delete the metric. If false, the metric is soft-deleted and can be restored.

Delete by Fully Qualified Name

Use DELETE /v1/metrics/name/{fqn} to delete by fully qualified name.
string
required
Fully qualified name of the metric, such as customer_retention_rate.
boolean
default:"false"
Permanently delete the metric.

Delete Asynchronously

Use DELETE /v1/metrics/async/{id} when deletion should run in the background. The endpoint accepts the same hardDelete query parameter and returns 202 Accepted with a job identifier.

Restore a Soft-Deleted Metric

Use PUT /v1/metrics/restore with the metric UUID in the request body.
string
required
UUID of the soft-deleted metric to restore.
DELETE /v1/metrics/{id}

Returns

The synchronous REST endpoints return the deleted metric. A soft-deleted metric has deleted: true. An asynchronous delete returns a job descriptor. Restore returns the restored metric. The Python and Java SDK delete methods do not return a value.
A hard-deleted metric cannot be restored.

Error Handling