Remove-MgUser — Basic UsageIT technician command center
Microsoft Graph · Entra ID and Graph

Remove-MgUser — Basic Usage

Use Remove-MgUser for a standard administrative task.

Copy-ready commandRemove-MgUser — Basic Usage
Remove-MgUser -UserId user@contoso.com
Production warning

Directory write operations can affect tenant access.

Requirements and permissions

Requirements
Microsoft.Graph PowerShell SDK
Permissions
Graph delegated or application permissions
Last reviewed
2026-07-31

Examples

Basic Usage

Use Remove-MgUser for a standard administrative task.

Remove-MgUser -UserId user@contoso.com

Original command

Delete a Microsoft Entra ID user.

Remove-MgUser -UserId user@contoso.com

Common errors

Command not found

Confirm Microsoft.Graph PowerShell SDK is installed and available in your current shell.