This can only be done by the Team owner. The Team owner is the user who has signed up for the Pro subscription and invited the others.
To remove team members or revoke the invitation, just click on the option Revoke or Remove next to their names, as in the screenshot below.
The removed team members will lose access to the team subscription plan.
More about Team plans: