how to delete a rule

Rising Flight 5,216 Reputation points
2024-05-20T21:34:58.2666667+00:00

Hi All,

I have a shared mailbox, and emails are automatically getting deleted from it. I can see the emails in the Deleted Items folder. There is no Outlook rule configured on the shared mailbox. When I use the following syntax, I don't get any output:

Get-InboxRule -Mailbox ******@contoso.com | fl Name, Description

However, when I use this syntax, I see a rule: How can I delete this rule?

r

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,171 questions
Exchange Exchange Server Management
Exchange Hybrid management
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2024-05-21T06:31:44.3566667+00:00

    Hi @Rising Flight,

    Welcome to the Microsoft forum for technical support.

     

    By default, an Inbox rule named Junk E-mail Rule is enabled in every mailbox, so what you have observed is actually the expected behavior. Because it's a hidden inbox rule, so it's not visible to end users from either OWA or Outlook client, and the "-includehidden" paramter is required in order for this rule to show up in the result of the Get-InboxRule cmdlet.

    According to your description, I suggest you can use the command in the following format to delete the rule:

    Remove-InboxRule -Mailbox ******@contoso.com -Identity "Name of the rule"

    Please replace "Name of the rule" with the actual name of the rule you want to delete.Inkedimage (12)_LI

    Refer to:Remove-InboxRule (ExchangePowerShell) | Microsoft Learn

    Please feel free to contact me if you have any queries.

    Best,

    Jake Zhang

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Rising Flight 5,216 Reputation points
    2024-05-21T09:39:04.42+00:00

    There is no other rule on the mailbox except this default rule but still emails are getting deleted automatically on the shared mailbox. The emails stay in the mailbox for one to two days and they get deleted. How can i trace this.


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.