curl --request POST \
--url https://dev.startree.ai/segments/{tableName}/delete \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '[
"<string>"
]'
{
"status": "<string>"
}
Delete the segments in the JSON array payload
curl --request POST \
--url https://dev.startree.ai/segments/{tableName}/delete \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '[
"<string>"
]'
{
"status": "<string>"
}
The format of the key is "Basic <token>" or "Bearer <token>"
Name of the table
Retention period for the table segments (e.g. 12h, 3d); If not set, the retention period will default to the first config that's not null: the table config, then to cluster setting, then '7d'. Using 0d or -1d will instantly delete segments without retention
The body is of type string[]
.
successful operation
The response is of type object
.
Was this page helpful?