Skip to main content

IXtfUserClient::DeleteUser

Removes a user, specified by email address, from the console.

Syntax

Parameters

userName
Type: LPCWSTR
The email address used to add the user to the console.

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 a user ID, use DeleteUserId. 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