Skip to main content
Mutation

removeSpaceMember

Removes a member from a space and closes their open sessions on the space and its projects. Their private data in the space's projects, such as personal casting ratings and notes, is deleted. The last member and the last owner of a space cannot be removed. Any member can remove themselves; removing someone else requires the admin or owner role (an admin removes only members).

Arguments

  • spaceIdID!

    ID of the space.

  • userIdID!

    ID of the member to remove.

Returns

MutationSuccess!

Example

mutation RemoveSpaceMember($spaceId: ID!, $userId: ID!) {
  removeSpaceMember(spaceId: $spaceId, userId: $userId) {
    success
  }
}