DELETE
/repos/{owner}/{repo}/rulesets/{ruleset_id}Delete a repository ruleset
Deletes a repository ruleset identified by its repository and ruleset ID. Use this operation when you no longer want the ruleset and its associated protections applied to the repository. A successful response contains no response body.
- 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.
ruleset_idintegerrequired
The numeric identifier of the ruleset to delete.
204Confirms that the repository ruleset was deleted successfully and returns no response body.
404Returned when the repository or ruleset does not exist.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
500Returned when an internal server error occurs.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
Error handling
A 404 is returned when the repository or ruleset cannot be found. A 500 is returned for an internal error. owner, repo, and ruleset_id must identify the repository and ruleset you intend to delete.