How long it take to remove hold from deletion state

Aase Nomad 246 Reputation points
2022-01-12T15:17:35.873+00:00

In our Test environment, I've created a few hold under a case in eDiscovery Core and I already delete those hold using PowerShell but It's sill displaying in Security & Complinace center so I wanna know when it will completely remove from the UI?.

The reason I'm asking is because we want to test, creating, updating and removing hold immediately in our test enviroment and if the holds keep displaying in the S&CC then it kinda delaying out process.

I'm getthing this errors.

164290-image.png

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,182 questions
Exchange | Exchange Server | Development
Windows for business | Windows Server | User experience | PowerShell
{count} votes

Accepted answer
  1. Manu Philip 20,206 Reputation points MVP Volunteer Moderator
    2022-01-12T15:52:12.78+00:00

    Try deleting the policy forcefully
    Example: Remove-DlpCompliancePolicy "lz8rl" -ForceDeletion


    If the Answer is helpful, please click "Accept Answer" and upvote it

    1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. KyleXu-MSFT 26,396 Reputation points
    2022-01-13T06:25:34.377+00:00

    @Aase Nomad

    Here is a test for you:

    If we delete a case hold policy, it will in the "pending deletion" state:
    164615-qa-kyle-14-12-02.png

    If we try to use the "ForceDeletion" when deleting an existing policy, we will get this error below:
    164598-qa-kyle-14-13-35.png

    So, we can know the "ForceDeletion" attribute is used to delete the "pending deletion" policy:
    164632-qa-kyle-14-23-40.png


    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.


    2 people found this answer helpful.

  2. Rich Matheisen 47,901 Reputation points
    2022-01-12T15:55:13.627+00:00

    Knowing the error is helpful, but knowing the cmdlet you're using when you encounter the error is important.

    Is it the Remove-DlpCompliancePolicy cmdlet?

    Here's an answer from several years ago: a8e9c629-22a3-4f66-90ab-7166df879f4c

    I don't see the "-ForceRemoval" parameter in the on-line help for that cmdlet, but give it a try.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.