DELETE
/repos/{owner}/{repo}/labels/{name}Delete a repository label
Deletes a label from a repository by its name. Supply the repository owner, repository name, and label name to identify the label to remove. Deleting the label removes it from the repository's available labels.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
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.
namestringrequired
The name of the label to delete.
204Confirms that the label was deleted successfully and returns no response body.
Error handling
owner, repo, and name must identify the repository and label you want to delete. Use the repository name without the .git extension, and provide the label name exactly as it is stored.