WordPress at a glance
function is not described

wp_revoke_user() WP 2.1.0

Remove all capabilities from user.

No Hooks.

Return

Nothing (null).

Usage

wp_revoke_user( $id );
$id(int) (required)
User ID.

Code of wp revoke user: wp-admin/includes/user.php WP 5.2.2

<?php
function wp_revoke_user( $id ) {
	$id = (int) $id;

	$user = new WP_User( $id );
	$user->remove_all_caps();
}