How to remove pending mails from queue in office 365

There are a few ways to remove pending emails from the queue in Office 365:

Method 1: Using the Office 365 Admin Center

  1. Sign in to the Office 365 Admin Center with your admin credentials.
  2. Go to Mail > Mail flow > Quarantine.
  3. Click on the Quarantine tab.
  4. Find the email you want to remove from the queue and click on the More menu next to it.
  5. Select Release to remove the email from the queue.

Method 2: Using PowerShell

  1. Open PowerShell and connect to your Office 365 tenant using the following command: Connect-ExchangeOnline -UserPrincipalName <your_admin_username> -ShowProgress $true
  2. Run the following command to get a list of all emails in the quarantine: Get-QuarantineMessage
  3. Find the email you want to remove from the queue and run the following command to release it: Release-QuarantineMessage -Identity <email_address>

Method 3: Using the Office 365 Security & Compliance Center

  1. Sign in to the Office 365 Security & Compliance Center with your admin credentials.
  2. Go to Threat management > Quarantine.
  3. Click on the Quarantine tab.
  4. Find the email you want to remove from the queue and click on the More menu next to it.
  5. Select Release to remove the email from the queue.

Method 4: Using the Office 365 Exchange Online PowerShell module

  1. Install the Office 365 Exchange Online PowerShell module if you haven't already: Install-Module -Name ExchangeOnline
  2. Connect to your Office 365 tenant using the following command: Connect-ExchangeOnline -UserPrincipalName <your_admin_username> -ShowProgress $true
  3. Run the following command to get a list of all emails in the quarantine: Get-QuarantineMessage
  4. Find the email you want to remove from the queue and run the following command to release it: Release-QuarantineMessage -Identity <email_address>

Note: Make sure you have the necessary permissions and credentials to access the Office 365 Admin Center, Security & Compliance Center, or PowerShell.