how to delete a rule

Rising Flight 4,596 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 smb@contoso.com | fl Name, Description

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

r

Microsoft Exchange Online
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,596 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,683 questions
Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
2,140 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jake Zhang-MSFT 6,700 Reputation points Microsoft Vendor
    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 smb@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 4,596 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.