Skip to main content
DELETE
/
traces
/
cleanup
Delete Old Traces
curl --request DELETE \
  --url https://api.promptmetrics.dev/traces/cleanup \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "before_date": "2023-11-07T05:31:56Z"
}
'
{
  "responseData": {
    "data": {
      "deleted_count": 123
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
before_date
string<date-time>
required

Response

200 - application/json

Cleanup completed

responseData
object