---
title: "Segment Batch Delete"
method: DELETE
path: "/api/segment/{segId}/scan"
tags: ["Segment"]
---

# Segment Batch Delete

`DELETE /api/segment/{segId}/scan`

## Request

- Base URL: `https://api.lytics.io`
- URL: `https://api.lytics.io/api/segment/{segId}/scan`
- Auth: API key in header `Authorization`

Delete a Batch of segments

```

#   ids=1234         convert this to []string{"123"}
#   ids=[123,456]    convert this to []string{"123","456"}
#   ids=123,456      convert this to []string{"123","456"}
#   ids=123&ids=456  convert this to []string{"123","456"}
#   ids[]=123&ids[]=456  convert this to []string{"123","456"}  Note that we alias ids[] = ids


curl -s -XDELETE -H "Content-Type: application/json" \
  - H "Authorization: $LIOKEY" \
  "https://api.lytics.io/api/segment?ids=21decdea54052ea1285478ecac53d1ed,59e39389fbf738d75246749a6146d280" \
   | jq '.'


```

## Path parameters

- `segId` string, required

## Query parameters

- `account_id` string
- `id` string
- `limit` integer
- `splits` string
- `start` integer
- `meta` boolean
- `sortfield` string
- `sortorder` string
- `recent` boolean
- `segments` string
- `fields` string

## Response `204`

No Content

---

[API](https://skmtc.dev/lytics/apis/v1-lytics-api.md) - [All operations](https://skmtc.dev/lytics/apis/v1-lytics-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lytics/apis/v1-lytics-api/revisions/339fd1d88486?raw)
