Currently we do not have any API calls to make for revoking the site access of a user.
Only possible way is to revoke the site access from the UI
This is a feature is helpful when we would want to revoke the site access only of a users and not necessarily remove them from the site (specifically during bulk operations).
Revoke the site access from the UI
If removing a user from the site entirely is acceptable, consider using this guide.