I have a site collection which is corrupted, it was not deleted correctly and now I cannot fully remove it.
It does not appear in the Central Admin, but it does with Powershell. Compatibility level appears empty. Somehow, the database where this site collection was, is also corrupted. It does not appear in the Central Admin, but it does via Powershell. I can't delete it either.
Querying $site.contentDatabase returns nothing, it looks like there is no connection between the site collection and the database.
I can't create the database again with the same name, or even delete the web application where this site collection was. Is there any way to force delete the site collection and the database?