POST
/
datasets
/
{dataset_name}
/
trim
curl --request POST \
  --url https://api.axiom.co/v1/datasets/{dataset_name}/trim \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "maxDuration": "1h"
}'
{
  "numDeleted": 123
}

When the endpoint returns the status code 200, it means that the deletion request is queued. The deletion itself might take several hours to complete.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

dataset_name
string
required

Unique name of the dataset.

Body

application/json

Response

200
application/json

TrimResult

The response is of type object.