Share via

how to delete a rule

Rising Flight 6,456 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 cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.

Exchange | Exchange Server | Management
Exchange | Exchange Server | Management

The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.

Exchange | Hybrid management
Exchange | Hybrid management

The administration of a hybrid deployment that connects on-premises Exchange Server with Exchange Online, enabling seamless integration and centralized control.

0 comments No comments

Answer accepted by question author

  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

    Was this answer helpful?

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Rising Flight 6,456 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.

    Was this answer helpful?


Your answer

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