Skip to main content

IXtfUserClient::DeleteUserId

Removes a user, specified by user ID, from the console.

Syntax

Parameters

userId
Type: UINT32
The user ID of the user to remove.

Return value

Type: HRESULT HRESULT success or error code.

Remarks

If a user is signed in to the console, the user is signed out before being removed. To delete a user by specifying an email address, use DeleteUser. To delete all users, use DeleteAllUsers. To add a user, use AddUser.

Requirements

Header: xtfuser.h Library: xtfuser.lib Supported platforms: Windows (for XBOX console tools)

See also

IXtfUserClient interface
Last modified on August 20, 2026