Example 1: Code snippet Import-Module Microsoft.Graph.CloudCommunications # A UPN can also be used as -UserId. Clear-MgUserPresenceLocation -UserId $userId This example shows how to use the Clear-MgUserPresenceLocation Cmdlet.