Skip to content
Website API / Segments

Delete a segment

DELETEhttps://<your Reveata origin>/api/v1/websites/{website}/segments/{segmentId}

Deletes one of your saved segments.

Related: List your segments and Save a segment in Segments.

Try in playground

Request

Path parameters

websitestringrequired

Website id or domain, e.g. example.com

1–253 characters

segmentIdstringrequired

Pattern: ^[a-f0-9]{24}$

Headers

Authorizationstringrequired

Bearer followed by an account token or an OAuth access token with the segments:write scope.

Response

Deleted.

{
  "status": "string",
  "data": {
    "deleted": "string"
  }
}

Response fields

FieldTypeDescription
status"ok"
dataobject
data.deletedtrue