copilot
Delete the custom agents source for an enterprise
Removes the custom agents source configuration for the enterprise. This effectively disables custom agents and Copilot CLI client settings for the enterprise by removing the reference to the source organization's .github-private repository.
Note: This does not delete the .github-private repository or any agent definition files. It only removes the association between the enterprise and the source repository.
Enterprise owners with write access to AI Controls can use this endpoint.
OAuth app tokens and personal access tokens (classic) need the admin:enterprise scope to use this endpoint.
delete/enterprises/{enterprise}/copilot/custom-agents/source
Path parameters
enterprisestring required
The slug version of the enterprise name.
Response
No Content - The custom agents source was successfully removed.