Description Usage Arguments Details Value Examples
This function removes a user from an organization or team. Removing someone from a team does not remove them from the organization, whereas removing them from an organization also removes them from any teams within the organization.
1 | delete_membership(user, org, team, ...)
|
user |
(string) The login of the user. |
org |
(string) The login of the organization. |
team |
(integer or string, optional) The ID or name of the team. |
... |
Parameters passed to |
Note: you can only remove a user if the authenticate user is an organization "owner" or a team "maintainer".
For more details see the GitHub API documentation:
https://docs.github.com/en/rest/reference/orgs#remove-organization-membership-for-a-user
https://docs.github.com/en/rest/reference/teams#remove-team-membership-for-a-user
delete_membership()
returns a TRUE if successfully deleted.
1 2 3 4 5 6 7 8 9 10 | ## Not run:
# Remove a user from an organization
delete_membership("ChadGoymer", "HairyCoos")
# Remove a user from a team
delete_membership("ChadGoymer", "HairyCoos", "HeadCoos")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.