I am trying to delete a web application in my SharePoint 2013 environment. The first attempt deleted the database, the application pool, the IIS site... But the I got an error saying
An object of the type Microsoft.SharePoint.Administration.SPIisWebsiteUnprovisioningJobDefinition named "Unprovisioning Webapplication" already exists under the parent Microsoft.SharePoint.Administration.SPWebService named "". Rename your object or delete the existing object.
So I deleted the corresponding jobs, as I have seen in other blogs and questions, and then tried to delete the web application once again. This time I get this error:
An object in the SharePoint administrative framework, "SPWebApplication Name=Webapplication", could not be deleted because other objects depend on it. Update all of these dependants to point to null or different objects and retry this operation. The dependant objects are as follows:
However, there are no dependencies being displayed in the message. The logs don't provide any information either.
UPDATE: This web application had 3 site collections on it:
/
/Sites/A
/Sites/B
Where the first and second site collections had 1 shared database, and the last one had a separate database. All site collections and all databases are deleted though.