1. Open Settings → Team Management.
  2. Under Members, select Remove next to the person.

They lose access immediately. Anything they created stays with the team.