import Roark from '@roarkanalytics/sdk';const client = new Roark({ bearerToken: process.env['ROARK_API_BEARER_TOKEN'], // This is the default and can be omitted});const metricPolicy = await client.metricPolicy.delete('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');console.log(metricPolicy.data);
{ "data": { "deleted": true }}
Metric Policy
Delete a metric policy
Soft-deletes a metric policy. System policies cannot be deleted.
DELETE
/
v1
/
metric
/
policies
/
{policyId}
JavaScript
import Roark from '@roarkanalytics/sdk';const client = new Roark({ bearerToken: process.env['ROARK_API_BEARER_TOKEN'], // This is the default and can be omitted});const metricPolicy = await client.metricPolicy.delete('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');console.log(metricPolicy.data);