DELETE/repos/{owner}/{repo}/issues/{issue_number}/labels/{name}

Remove a label from an issue

Removes a specified label from an issue and returns the labels that remain. Use owner, repo, and issue_number to identify the issue, and name to select the label to remove.

4 parameters
ownerstringrequired
The account owner of the repository; the name is not case-sensitive.
repostringrequired
The repository name without the `.git` extension; the name is not case-sensitive.
issue_numberintegerrequired
The number that identifies the issue.
namestringrequired
The name of the label to remove from the issue.

4 status codes
200Returns an array of the labels that remain on the issue after the specified label is removed.
idintegerrequired
Unique identifier for the label.
node_idstringrequired
urlstringrequired
URL for the label
namestringrequired
The name of the label.
descriptionstringrequired
Optional description of the label, such as its purpose.
colorstringrequired
6-character hex code, without the leading #, identifying the color
defaultbooleanrequired
Whether this label comes by default in a new repository.
archived_atstringrequired
Timestamp indicating when the label was archived, or `null` if it has not been archived.
archived_byobjectrequired
The user who archived the label, or `null` if it has not been archived.
301Returned when the resource has moved permanently.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
404Returned when the repository, issue, or specified label cannot be found.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
410Returned when the resource is no longer available.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional

Error handling

A 404 is returned when the repository, issue, or specified label cannot be found; a 410 is returned when the resource is no longer available. The owner, repo, and issue_number path parameters must identify the issue, and the name path parameter must identify the label to remove.