EWS Cannot HardDelete or SoftDelete Items or Folders RRS feed

  • Question

  • I have a mailbox (office 365 hosted), and am attempting to permanently delete items from it. Permanently delete rather than move to Deleted Items folder. These are all mail objects.

    Item.Delete and Folder.Delete both fail, for all items, with the following error:

    Exception calling "Delete" with "1" argument(s): "Object cannot be deleted."
    At line:9 char:1
    + $Folder.Delete([Microsoft.Exchange.WebServices.Data.DeleteMode]::Hard ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : ServiceResponseException


    <Trace Tag="EwsResponse" Tid="13" Time="2017-06-27 16:44:41Z" Version="15.00.0516.014">
      <?xml version="1.0" encoding="utf-8"?>
      <s:Envelope xmlns:s="">
          <h:ServerVersionInfo MajorVersion="15" MinorVersion="1" MajorBuildNumber="1199" MinorBuildNumber="19" Version="V2017_04_14" xmlns:h="" xmlns:xsd="" xmlns:xsi="" />
          <m:DeleteFolderResponse xmlns:m="" xmlns:xsd="" xmlns:xsi="" xmlns:t="">
              <m:DeleteFolderResponseMessage ResponseClass="Error">
                <m:MessageText>Object cannot be deleted.</m:MessageText>

    What are possible reasons why this would fail? I have full admin privileges. I can move these items successfully to other folders, and also Delete successfully with 


    but HardDelete and SoftDelete both fail.

    • Edited by davegravy Tuesday, June 27, 2017 4:49 PM Clarification
    Tuesday, June 27, 2017 4:47 PM

All replies

  • Can you delete via "regular" methods, such as Outlook/OWA? Perhaps the dumpster is full, check the recoverable items quota.
    Tuesday, June 27, 2017 7:57 PM
  • Litigation hold on the Mailbox would cause that issue.

    Also if your trying to hard delete something from the RetainedItems\Purges folder you would get that error also, the only way of clearing that folder is to let Exchange do it when the retention period has expired.


    Wednesday, June 28, 2017 2:42 AM