Skip to content
Docs

Remove a Team Member

DELhttps://api.vercel.com/v1/teams/{teamId}/members/{uid}
Remove a Team Member from the Team, or dismiss a user that requested access, or leave a team. Directory Sync members can be removed when their directory email is absent or does not match the user's primary or verified secondary emails.
https://api.vercel.com/v1/teams/{teamId}/members/{uid}
const response = await fetch('https://api.vercel.com/v1/teams/teamId/members/uid?newDefaultTeamId=string', {
method: 'DELETE',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json',
},
});
const data = await response.json();
console.log(data);
Response
{
"id": "icfg_1234567890"
}
AuthorizationbearerToken

Default authentication mechanism

uidstringRequired
The user ID of the member.
teamIdstringRequired
newDefaultTeamIdstringOptional
The ID of the team to set as the new default team for the Northstar user.
200Successfully removed a member of the team.
idstringRequired
ID of the team.
400One of the provided values in the request query is invalid.
401The request is not authorized.
403You do not have permission to access this resource. Not authorized to update the team.
404Error
410Error
503Error