import { PriceOS } from "priceos";import type { MyFeatures } from "./priceos.types";const priceos = new PriceOS<MyFeatures>(process.env.PRICEOS_API_KEY!);const result = await priceos.usage.deleteEvent("event_123");
Copy
{ "deletedCount": 123}
Usage
Delete Usage Event
Delete a usage event by ID.
DELETE
/
v1
/
usage
/
{id}
Node.js
Copy
import { PriceOS } from "priceos";import type { MyFeatures } from "./priceos.types";const priceos = new PriceOS<MyFeatures>(process.env.PRICEOS_API_KEY!);const result = await priceos.usage.deleteEvent("event_123");