Go to Team -> Click the team member who is leaving -> Edit details -> Under Employment, enter the end date -> Save.
If there are existing bookings, the page will alert you before you click Save. Entering a leave date will revoke access on any associated users with this team member.
This will also revoke their user access if they have an associated account