I struggling to delete a specific folder with Office365 Exchange online Get-MailboxFolderStatistics mailbox in question | Select Name,FolderSize,ItemsinFolder This is the folder: Auto replies 8.721 GB (9,363,929,634 bytes) Tried PS C:\WINDOWS\system32> Search-Mailbox -Identity mailboxname -SearchQuery '#Auto replies#' -DeleteContent WARNING: WARNING: On July 1, 2020, the Search-Mailbox cmdlet is being retired and Microsoft Support will no longer provide assistance. See https://go.microsoft.com/fwlink/?linkid=2113221 to learn more. WARNING: The Search-Mailbox cmdlet returns up to 10000 results per mailbox if a search query is specified. To return more than 10000 results, use the New-MailboxSearch cmdlet or the In-Place eDiscovery & Hold console in the Exchange Administration Center. Confirm Deleting content from mailboxes mailbox name [Y] Yes [A] Yes to All [N] No [L] No to All [?] Help (default is "Y"): Y Deletion failed with error 'Move/Copy messages failed.' for the following item: Client Services,"A - Matched ","[Calltracks Ltd] Re: Re: 21838 Numbers for porting",False,3/12/2019 2:41:01 PM,3/12/2019 2:41:05 PM,Calltracks Support Team,support@calltracks.com,RgAAAABB7TM26szqRYgvSxJV39WXBwBT3afQZU+FSbg64qtOITreAAFwiDupAABT3afQZU+FSbg64qtOITreAAHxsxvHAAAJ Deletion failed with error 'Move/Copy messages failed.' for the following item: Client Services,"A - Matched ","[Calltracks Ltd] Re: Re: 21838 Numbers for porting",True,3/12/2019 2:57:19 PM,3/12/2019 2:57:23 PM,Calltracks Support Team,support@calltracks.com,RgAAAABB7TM26szqRYgvSxJV39WXBwBT3afQZU+FSbg64qtOITreAAFwiDupAABT3afQZU+FSbg64qtOITreAAHxsxvLAAAJ Deletion failed with error 'Move/Copy messages failed.' for the following item: Client Services,"A - Matched ","Request #94495: How would you rate the support you received?",False,3/13/2019 3:02:30 PM,3/13/2019 3:02:38 PM,Calltracks Support I think I've installed the new module but can't get it to work either: PS C:\WINDOWS\system32> Install-Module -Name ExchangeOnlineManagement Untrusted repository You are installing the modules from an untrusted repository. If you trust this repository, change its InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules from 'PSGallery'? [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): A PS C:\WINDOWS\system32> Import-Module -Name ExchangeOnlineManagement PS C:\WINDOWS\system32> Connect-ExchangeOnline -Credential $credentials ---------------------------------------------------------------------------- The module allows access to all existing remote PowerShell (V1) cmdlets in addition to the 9 new, faster, and more reliable cmdlets. |--------------------------------------------------------------------------| | Old Cmdlets | New/Reliable/Faster Cmdlets | |--------------------------------------------------------------------------| | Get-CASMailbox | Get-EXOCASMailbox | | Get-Mailbox | Get-EXOMailbox | | Get-MailboxFolderPermission | Get-EXOMailboxFolderPermission | | Get-MailboxFolderStatistics | Get-EXOMailboxFolderStatistics | | Get-MailboxPermission | Get-EXOMailboxPermission | | Get-MailboxStatistics | Get-EXOMailboxStatistics | | Get-MobileDeviceStatistics | Get-EXOMobileDeviceStatistics | | Get-Recipient | Get-EXORecipient | | Get-RecipientPermission | Get-EXORecipientPermission | |--------------------------------------------------------------------------| My powersheeling script is quite weak any help would be really appreciated