DELETE
/agents/repos/{owner}/{repo}/automations/{automation_id}Delete an automation for a repository
Deletes an automation in a repository.
Fine-grained access tokens for "Delete an automation for a repository"
This endpoint works with the following fine-grained token types:
The fine-grained token must have one of the following permission sets for each repository accessed by this request:
- "Agent tasks" repository permissions (read and write)
- "Contents" repository permissions (read and write)
The required permission set depends on each repository's Automation permission configuration.
GitHub App installation access tokens are not supported for this endpoint.
ownerstringrequired
The account owner of the repository. The name is not case sensitive.
repostringrequired
The name of the repository. The name is not case sensitive.
automation_idstringrequired
The unique identifier of the automation.
204Automation deleted successfully
400Bad request
messagestringrequired
Summary message (e.g. "Validation Failed", "Not Found")
errorsarray<object>optional
List of validation errors (present only for 422 responses)
documentation_urlstringrequired
URL to relevant API documentation
401Authentication required
messagestringrequired
Summary message (e.g. "Validation Failed", "Not Found")
errorsarray<object>optional
List of validation errors (present only for 422 responses)
documentation_urlstringrequired
URL to relevant API documentation
404Resource not found
messagestringrequired
Summary message (e.g. "Validation Failed", "Not Found")
errorsarray<object>optional
List of validation errors (present only for 422 responses)
documentation_urlstringrequired
URL to relevant API documentation
Error handling
A 400 is returned: Bad request. A 401 is returned: Authentication required. A 404 is returned: Resource not found.