Remove-mailuser parameter -PermanentlyDelete is not found

IniobongNkanga-8038 296 Reputation points
2024-07-18T15:53:10.7466667+00:00

Hello 

 

Please i need your help on this issue.

 

Remove-mailuser parameter -PermanentlyDelete is not found.

 

We need to confirm if this is the parameter to remove-mailuser for Exchange Online (Cloud) as mentioned in this Microsoft documentation below: https://learn.microsoft.com/en-us/powershell/module/exchange/remove-mailuser?view=exchange-ps

 

Microsoft Exchange Online
Microsoft Exchange
Microsoft Exchange
Microsoft messaging and collaboration software.
457 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jake Zhang-MSFT 3,185 Reputation points Microsoft Vendor
    2024-07-19T02:30:03.6333333+00:00

    Hi @IniobongNkanga-8038,

    Welcome to the Microsoft Q&A platform!

    According to the official documentation, the -PermanentlyDelete parameter is available only in the cloud-based service and applies to Exchange online. However, the official documentation also states that this switch works only on mail users that have already been deleted, but are still recoverable (known as soft-deleted mail-users).image (15)

    So, before using its parameters, make sure that your situation complies with these regulations.

    Please feel free to contact me if you have any queries.

    Best,

    Jake Zhang