---
title: "Delete selected segments. An optional 'excludeReplacedSegments' parameter is used to get the list of segments which has not yet been replaced (determined by segment lineage entries) and can be queried from the table. The value is false by default."
method: DELETE
path: "/segments/{tableName}/choose"
tags: ["Segment"]
---

# Delete selected segments. An optional 'excludeReplacedSegments' parameter is used to get the list of segments which has not yet been replaced (determined by segment lineage entries) and can be queried from the table. The value is false by default.

`DELETE /segments/{tableName}/choose`

List all segments

## Path parameters

- `tableName` string, required

## Query parameters

- `type` string
- `excludeReplacedSegments` boolean
- `startTimestamp` string, required
- `endTimestamp` string, required
- `excludeOverlapping` boolean
- `retention` string

## Response `200`

successful operation

- SuccessResponse
  - `status` string

---

[API](https://skmtc.net/startree/apis/pinot-controller-api.md) · [All operations](https://skmtc.net/startree/apis/pinot-controller-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/startree/pinot-controller-api/revisions/f1cc8a0ba2e0/schema)
