---
title: "Delete segment"
method: DELETE
path: "/api/segments/{segment_id}"
tags: ["Segments"]
---

# Delete segment

`DELETE /api/segments/{segment_id}`

## Request

- Base URL: `https://go.urbanairship.com`
- URL: `https://go.urbanairship.com/api/segments/{segment_id}`
- Auth: one of:
  - HTTP basic
  - HTTP bearer
- TypeScript: <https://skmtc.dev/airship/apis/airship-api/docs/api/segments/:segment_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Remove the segment.

## Response `204`

An API request was successful, but there is no response body to return.

## Other responses

- `401`: Authentication information (the app key and secret or bearer token) was either incorrect or missing.
- `404`: The requested resource doesn't exist.

---

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