I dont have retention policy, but still can not delete file versions, since error message says that retention policy prevents it

Attila Dob 95 Reputation points
2024-05-22T08:53:19.1066667+00:00

Dear All,

I used to have retention policy, that prevented final deletion of everything.

I deleted this policy (as you can see from the picks below), but still when trying to delete old file versions I only get error message, saying: Versions of this item cannot be deleted because it is on hold or retention policy applies.

image.png

image.png

And interestingly, in the policy lookup section it still shows the (deleted) policy. But here I can not edit/delete, although I have E5 licence (and I am global admin) that theoretically gives full controll over policies. Any ideas how to solve this?

Appreciate!

Regards, Attila

User's image

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
4,103 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,026 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ling Zhou_MSFT 14,530 Reputation points Microsoft Vendor
    2024-05-23T02:04:48.6033333+00:00

    Hi @Attila Dob,

    Thank you for posting in this community.

    First, we need to verify that the deleted retention policy still exists.

    1.Please install the Exchange Online PowerShell module.

    2.Run the following command to get all the policies in your organization to see if they contain the deleted policy. (You can also add -Identity to find your deleted policy based on the policy name.)

    Reference: Get-RetentionCompliancePolicy

    #This example displays summary information for all retention policies in your organization.
    
    Get-RetentionCompliancePolicy
    
    #This example displays detailed information for the policy named "Regulation 123 Compliance", including accurate values for the DistributionStatus and *Location properties.
    
    Get-RetentionCompliancePolicy -Identity "Regulation 123 Compliance" -DistributionDetail | Format-List
    

    Then, if the policy still exists, run the following command to remove the policy. If everything is fine, skip this step. Reference: Remove-RetentionPolicy

    #This example removes the retention policy Business Critical.
    
    Remove-RetentionPolicy -Identity "Business Critical"
    

    Finally, this policy deletion starts the deletion from the server side, and it will take 24 hours or more before it takes effect. So, we suggest you check back in a few days to see if the problem still exists.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful