DELETE/repos/{owner}/{repo}/rulesets/{ruleset_id}

Delete a repository ruleset

Deletes a ruleset from a repository. Identify the repository with owner and repo, and specify the ruleset with ruleset_id. The operation returns no content when the ruleset is deleted.

3 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.
ruleset_idintegerrequired
The ID of the ruleset to delete.

3 status codes
204Returns no content after deleting the repository ruleset.
404Returned when the repository or ruleset cannot be found.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
500Returned when an internal error occurs.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional

Error handling

A 404 is returned when the owner path parameter and repo path parameter do not identify a repository, or the ruleset_id path parameter does not identify a ruleset in that repository. A 500 indicates an internal error.