API / delete-origin-label-via-api

API

Delete an Origin Label via the API

Remove a repository label definition with DELETE https://api.cursor.com/v1/origin/repos/{ownerSlug}/{repoName}/labels/{labelName}. Official reference: Origin API → Delete Label (OpenAPI OriginService_DeleteLabel). Changelog entry: August 26, 2026.

Origin is in Early Beta and subject to change. Authenticate with an installation access token (oit_…) or a user access token that carries repository:labels:write. Availability: Early Beta per the API overview.

Cost: 5 points against the principal budget (ordinary write).

Deleting a label also removes it from every pull request it was assigned to. Subscribers to pull_request.label.removed get one delivery per pull request that carried the label (September 19, 2026 changelog).

Path parameters

Param Required Meaning
ownerSlug yes Owning entity's unique slug
repoName yes Repo name, unique to the owner
labelName yes Label name; leading/trailing whitespace trimmed before lookup
curl --request DELETE \
  --url 'https://api.cursor.com/v1/origin/repos/OWNER_SLUG/REPO_NAME/labels/bug' \
  --header 'Authorization: Bearer YOUR_ORIGIN_TOKEN'

Response

Successful deletes return 204 with an empty body. An unknown name returns 404.

Base URL: https://api.cursor.com/v1/origin.