I had created a site collection. But there is a problem of web-frontend server (I did not know when I created the site), so the page is always in processing. After waiting 40 mins, I closed the page. When the problem of web-frontend server solved, I found the site link already existed, but I cannot connect to site and I cannot delete it in Central Administration.

Try to delete site collection in Application Management, failed
I select my site collection in Central Administration. For example, if I navigate to Application Management > View all site collections> selecte site collection, there is no information on the right side. No database, no adminitrator, nothing.

Use PowerShell to delete site collection, failed
Remove-SPSite -Identity http://domain/sites/sitename"

Nothing change

The Central Administration displayed the site in the sites list, but without any reference to the Content Database where it should have been created. No way to remove it using the web interface (all pages displaying information about the site had no content at all).

Then i thought to clean it up and remove via script.

A simple Get-SPSite returned a valid object. But a subsequent Remove-SPSite failed with the dreaded “Unknown SPRequest error.occurred”.

I had to find a quick solution, like a “force delete” when the site cannot be deleted.

Therefore I used a not so well-known operation on the Content Database object: Microsoft.SharePoint.Administration.SPContentDatabase::ForceDeleteSite (see http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.spcontentdatabase.forcedeletesite.aspx).

With this simple PowerShell code I managed to work it out and clean the unwanted or corrupted site.

$site = Get-SPSite http://siteurl
$siteId = $site.Id
$siteDatabase = $site.ContentDatabase
$siteDatabase.ForceDeleteSite($siteId, $false, $false)

As the Information clearly states in the image As the Information clearly states in the image

Reference: https://sharepoint.stackexchange.com/questions/133131/cannot-delete-site-collection-in-central-administration

最新文章

  1. mybatis传递参数到mapping.xml
  2. 使用tornado和angularjs搭建网站
  3. ftp (文件传输协议)
  4. 【转载】简述Linux的启动过程
  5. ASP 发送邮件
  6. .htaccess的基本作用及相关语法介绍
  7. java应用uploadify 3.2丢失session
  8. 【腾讯Bugly干货分享】手游热更新方案xLua开源:Unity3D下Lua编程解决方案
  9. JBoss Jopr
  10. 安装ipvsadm报错
  11. 循环执行sql语句
  12. Docker了解
  13. vue的登陆验证及返回登录前页面实现
  14. 美橙互联SSL 部署到IIS 7以上
  15. kerberos介绍
  16. Monte Carlo tree search 学习
  17. JavaBase
  18. ip相关问题解答
  19. angular2+ 初理解
  20. MySQL下查询锁信息

热门文章

  1. Winfrom devexpress 通用权限框架
  2. .Net IOC框架入门之——Autofac
  3. LIBRARY_PATH和LD_LIBRARY_PATH
  4. vue 的 Class 与 Style 绑定
  5. 基础系列(1)-- html
  6. VMware vSphere API开发(一)---vSphere 体系核心概念
  7. Django rest framework ---- 权限
  8. Kafka Manager几个指标含义
  9. 【转】Linux内存管理(最透彻的一篇)
  10. Mysql数据库之慢查询