![outlook 365 delete emails in specific folder outlook 365 delete emails in specific folder](https://recoverit.wondershare.com/images/article/2019/11/delete-all-emails-from-all-folders-1.jpg)
Is it still smart to make you're firewall HA for your production environment. And then an older Dell Optiplex that runs Blue Ir. Trying to cut down on some usage, and looking for some advice Currently, in the rack, are 2 24 port switches, a Synology DS-1515+ with 5 4TB WD-Red's. My rack, idle, is pulling around 500watts an hour.
![outlook 365 delete emails in specific folder outlook 365 delete emails in specific folder](https://www.azure365pro.com/wp-content/uploads/2015/08/image_thumb97-660x330.png)
Write-Host -Fore DarkYellow " Processing $($Folder.DisplayName).
![outlook 365 delete emails in specific folder outlook 365 delete emails in specific folder](http://www.codetwo.com/admins-blog/wp-content/uploads/2016/10/opened-emails-from_pst.png)
$FolderList = $Root.FindFolders($FolderView) $Service.ImpersonatedUserId = New-Object .ImpersonatedUserId(::SmtpAddress,$Identity) Write-Host -Fore Yellow " Purging folders. Get-MailboxFolderStatistics $identity | Select Identity, ItemsInFolder | ft $Service.AutodiscoverUrl($Credential.Username, ) $creds = New-Object ($(),$Credential.GetNetworkCredential().password.ToString()) $Service = New-Object .ExchangeService($ExchangeVersion) Write-Host -ForegroundColor DarkGreen " Connecting to AutoDiscover endpoint for $($Credential.UserName)." Write-Host -Fore Green "Content from $Identity will be erased." $Identity = Read-Host "Enter user mailbox to wipe" $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Credential $UserCredential -Authentication Basic -AllowRedirection I'm trying to delete all the content including the folders of a mailbox with the following powershell script, but I'm getting an error: