title: Powershell command to delete 2000+ same day calendar entries in Office 365?
body: <p>The title says it all.  One of our executives has 2000+﻿ series of the same exact meeting happening every single monday.  How that even happens? I have no idea.</p>
  
  <p>I've tried running the following:</p>
  
  <pre><code>Get-Mailbox -ResultSize unlimited | Search-Mailbox -TargetMailbox: "Email of User" -SearchQuery subject:"Subject of Calendar Entry" TargetFolder "Calendar" -DeleteContent
  </code></pre>
  
  <p>But I keep getting the following error:﻿</p>
  
  <blockquote>
    <p>A positional parameter cannot be found that accepts argument
    'Calendar'.
        + CategoryInfo          : InvalidArgument: (:) [Search-Mailbox], Parameter    BindingException
        + FullyQualifiedErrorId : PositionalParameterNotFound,Search-Mailbox Invoke-Command : Cannot
    write input as there are no more running pipelines At
    C:\Users\administrator\AppData\Local\Temp\tmp_043dc405-8409-4b6a-aa5b-a8eaa5b24cba
    _gjq20aee.wv2\tmp_043dc405-8409-4b6a-aa5b-a8eaa5b24cba_gjq20aee.wv2.psm1:39681
    char:29
    +             $scriptCmd = { &amp; &lt;&lt;&lt;&lt;  $script:InvokeCommand `
        + CategoryInfo          : InvalidOperation: (:) [Invoke-Command], PSInvali    dOperationException
        + FullyQualifiedErrorId : NoMoreInputWrite,Microsoft.PowerShell.Commands.I<br>
    nvokeCommandCommand</p>
  </blockquote>