DELETE/repos/{owner}/{repo}/actions/policies/{policy_id}

Delete a repository Actions policy

Deletes an Actions policy from a repository. Use policy_id to identify the policy you want to remove; this operation does not return a response body when successful.

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.
policy_idintegerrequired
The ID of the policy to delete.

3 status codes
204Returns no content after the Actions policy is deleted.
404Returned when the repository or policy cannot be found.
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 policy cannot be found. A 500 indicates an internal server error; the policy_id path parameter must identify the policy to delete.