1

I get this error after I try to recreate a site collection which just have been deleted.

System.ArgumentException: Another site already exists at http://localhost. Delete this site before attempting to create a new site with the same URL, choose a new URL, or create a new inclusion at the path you originally specified.

I have deleted everything, dont see the site collections anymore in management center, and content DB's are deleted.

2 Answers 2

1

When you delete a site collection, it deleted for end user but still exist in the sharepoint recylce bin called Central admin Recycle Bin(Accessable via PowerShell). in order to compeltly remove a site collection,please follow these steps.

  • delete a site collection.
  • Now run the Get-SpDeletedSite on server and you will see the recent deleted site collection.
  • Now run the Remove-SpDeletedSite against your site collection.
  • Now go to central admin > Monotring > Job Definitation > click on the Gradual Site Delete and Click run now.
  • wait for 5 min and Now try to create new site collection using the old name.
0

There is a possibility that this site collection still resides in the site collection "Recycling Bin" and retained for 90 days. Please verify that this item has been cleared from the Recycling Bin.

For more information, you can see the following site upon what happens after a site collection is deleted.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.