Sample - GitHub REST API
DELETE/enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}

Delete an organization assignment

Deletes an assignment between an enterprise team and an organization. Provide the enterprise, enterprise team, and organization identifiers that define the assignment to remove.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

3 parameters
enterprisestringrequired
The slug version of the enterprise name.
enterprise-teamstringrequired
The slug version of the enterprise team name, or the enterprise team ID.
orgstringrequired
The organization name; matching is not case-sensitive.

1 status code
204Confirms that the enterprise team was unassigned from the organization.

Error handling

enterprise, enterprise-team, and org must identify the enterprise team assignment to remove. The org value is case-insensitive, and enterprise-team can be either the team's slug or its ID.