Unable to delete exchange 2013 database

When I try to delete a mailbox database on my exchange 2013 server I get this error, but the database is empty. What am I missing?

This mailbox database contains one or more mailboxes, mailbox plans, archive mailboxes, public folder mailboxes or arbitration mailboxes. To get a list of all mailboxes in this database, run the command Get-Mailbox -Database <Database ID>. To get a list of all mailbox plans in this database, run the command Get-MailboxPlan. To get a list of archive mailboxes in this database, run the command Get-Mailbox -Database <Database ID> -Archive. To get a list of all public folder mailboxes in this database, run the command Get-Mailbox -Database <Database ID> -PublicFolder. To get a list of all arbitration mailboxes in this database, run the command Get-Mailbox -Database <Database ID> -Arbitration. To disable a non-arbitration mailbox so that you can delete the mailbox database, run the command Disable-Mailbox <Mailbox ID>. To disable an archive mailbox so you can delete the mailbox database, run the command Disable-Mailbox <Mailbox ID> -Archive. To disable a public folder mailbox so that you can delete the mailbox Database, run the command Disable-Mailbox <Mailbox ID> -PublicFolder. Arbitration mailboxes should be moved to another server; to do this, run the command New-MoveRequest <parameters>. If this is the last server in the organization, run the command Disable-Mailbox <Mailbox ID> -Arbitration -DisableLastArbitrationMailboxAllowed to disable the arbitration mailbox. Mailbox plans should be moved to another server; to do this, run the command Set-MailboxPlan <MailboxPlan ID> -Database <Database ID>.

    + CategoryInfo          : InvalidOperation: (MYEXCHANGEDATABASE-mdb-01:DatabaseIdParameter) [Remove-MailboxDatabase], AssociatedU
   serMailboxExistException
    + FullyQualifiedErrorId : [Server=MYEXCHANGEDATABASE,RequestId=d2f3fe88-4d99-49c1-9068-32d9287a2d4e,TimeStamp=5/8/2015 5:28:19 PM
   ] [FailureCategory=Cmdlet-AssociatedUserMailboxExistException] BBBEE31D,Microsoft.Exchange.Management.SystemConfigurationTas
  ks.RemoveMailboxDatabase
    + PSComputerName        : MYEXCHANGEDATABASE.MYDOMAIN.com



thank you
cyberleo2000Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Will SzymkowskiSenior Solution ArchitectCommented:
As you can read through the message there are either Public folder mailboxes / arbitration mailboxes / or archive mailboxes that still exist on this database. Have you run the above commands in the error to validate that they actually do still reside on this database?

If they do then you need to in fact remove them.

Will.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
cyberleo2000Author Commented:
Yes, I ran through all the commands. there were two mailboxes. I moved them to another server. I ran through all the commands again and now they come up empty but I still get the error.
Will SzymkowskiSenior Solution ArchitectCommented:
Have you tried running Update-StoreMailboxState -Database <db1>  which will force mailbx store state. This command is equivalent to clean-mailboxdatabase in Exchange 2007/2010.

You can also try remove-StoreMailbox cmdlet as well.
https://technet.microsoft.com/en-us/library/ff829913(v=exchg.150).aspx


Will.
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

cyberleo2000Author Commented:
I ran this: Get-MailboxStatistics -Database MYDATABASE | where {$_.DisconnectReason -eq "SoftDeleted"} | foreach {Remove-StoreMailbox -Database $_.database -Identity $_.mailboxguid -MailboxState SoftDeleted}

It found mailbox i moved and removed it.

But I still get the same error when I run Remove-MailboxDatabase MYDATABASE
Will SzymkowskiSenior Solution ArchitectCommented:
Have you tried to stop/start the information store service?

Will.
cyberleo2000Author Commented:
Yes, Didn't work. Does it matter that the transport service is stopped? I don't see how that would be a problem, but .....
Will SzymkowskiSenior Solution ArchitectCommented:
Transport service is the service that routes the mail. It shouldn't be stopped, however it should not be part of the issue. Have you tried either recycling all of the Exchange services and or rebooting the Exchange server itself?

Will.
cyberleo2000Author Commented:
We don't want this server routing any mail yet. I'l give the reboot a shot.

What if I were to stop the information store, delete the database edb file and all its logs, then restart the info store? Wouldn't that automatically create a new empty database that could remove properly?
Will SzymkowskiSenior Solution ArchitectCommented:
That could possibly work (not tested that before) but i would perform the reboot first and use that method as a last restore.

Will.
cyberleo2000Author Commented:
reboot did not work. I stopped the info store, delete the edb file and logs, started the info store, ran Mount-Database DATABASE-NAME. I was warned that a new empty database would be created. It was. I still get that same error message when i run remove-mailboxdatabase <databasename>.

what's preventing me from removing the database?
Will SzymkowskiSenior Solution ArchitectCommented:
Based on your original error message it is still pointing to a mailbox on that database. If you really wanted to force remove this using ADSIEdit would do it but i would not recommend it as it is not a supported method, but it will in fact remove the database.

Will.
cyberleo2000Author Commented:
The databases have been deleted. It seems our help desk kept creating mailboxes in them. Thanks for you help Will.
Alkholi-Group-AdminsCommented:
Get-Mailbox -Arbitration
 

and if there is arbitration mailbox move to diff rent Db
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.