删除网站Delete a site

当您作为 Microsoft 365 中的全局管理员或 SharePoint 管理员删除网站(之前称为 "网站集")时,它会保留为已删除网站的93天。When you, as a global or SharePoint admin in Microsoft 365, delete a site (previously called a "site collection"), it's retained as a deleted site for 93 days. 删除网站会删除该网站内的所有内容,包括:Deleting a site deletes everything within it, including:

  • 文档库和文件。Document libraries and files.

  • 列表和列表数据。Lists and list data.

  • 网站设置和历史记录。Site settings and history.

  • 任何子网站及其内容。Any subsites and their contents.

您应在删除网站之前通知网站管理员和任何子网站所有者,以便他们将其数据移动到其他位置,还应在删除网站时通知用户。You should notify the site admins and any subsite owners before you delete a site so they can move their data to another location, and also tell users when the sites will be deleted.

警告

我们建议您不要删除您的组织的根网站。We do not recommend deleting the root site for your organization. 如果执行此操作,则在还原网站或创建新的根网站之前,所有 SharePoint 网站都将不可访问。If you do, all your SharePoint sites will be inaccessible until you restore the site or create a new root site. 建议将其替换,而不是删除根网站。Instead of deleting the root site, we recommend replacing it. 了解有关根网站及其替换方法的详细信息Learn more about the root site and how to replace it

在新 SharePoint 管理中心中删除网站Delete a site in the new SharePoint admin center

通过使用新的 SharePoint 管理中心,可以删除经典和新式网站。By using the new SharePoint admin center, you can delete both classic and modern sites. 全局管理员和 SharePoint 管理员现在都可以删除属于 Microsoft 365 组的网站。Both global and SharePoint admins can now delete sites that belong to Microsoft 365 groups. 删除这些网站会删除该组及其所有资源,包括 Outlook 邮箱和日历以及任何团队频道。Deleting these sites will delete the group and all its resources, including the Outlook mailbox and calendar, and any Teams channels.

  1. 转到新的 SharePoint 管理中心的“活动网站”页,然后使用在组织中具有管理员权限的帐户进行登录。Go to the Active sites page of the new SharePoint admin center, and sign in with an account that has admin permissions for your organization.

备注

如果使用的是 Office 365 Germany,请登录 Microsoft 365 管理中心,然后浏览到 SharePoint 管理中心并打开“活动站点”页面。 If you have Office 365 Germany, sign in to the Microsoft 365 admin center, then browse to the SharePoint admin center and open the Active sites page.
如果使用的是由世纪互联(中国)运营的 Office 365,请登录 Microsoft 365 管理中心,然后浏览到 SharePoint 管理中心并打开“活动站点”页面。If you have Office 365 operated by 21Vianet (China), sign in to the Microsoft 365 admin center, then browse to the SharePoint admin center and open the Active sites page.

  1. 在左侧栏中,选择一个网站。In the left column, select a site.

  2. 依次选择 "删除" 和 "确认",选择 "删除"。Select Delete, and to confirm, select Delete.

    删除 "活动网站" 页面上的网站

备注

若要删除中心网站,首先需要将其注销为中心网站。To delete a hub site, you first need to unregister it as a hub site.
已删除的 Microsoft 365 组仅保留30天。Deleted Microsoft 365 groups are retained for only 30 days.
有关使用 PowerShell 删除网站的信息,请参阅get-spositeFor info about deleting a site by using PowerShell, see Remove-SPOSite.

永久删除网站Permanently delete a site

若要重用已删除网站中的 URL (重新创建网站),您需要永久删除该网站。To reuse a URL from a deleted site (recreate a site), you need to permanently delete the site. 在永久删除网站后,可能需要长达24小时才能使 URL 变得可用。After the site is permanently deleted, it might take up to 24 hours for the URL to become available. 在新 SharePoint 管理中心的 "已删除的网站" 页上,您可以永久删除除属于 Microsoft 365 组的网站之外的所有网站。On the Deleted sites page of the new SharePoint admin center, you can permanently delete all sites except those that belong to Microsoft 365 groups.

  1. 转到新 SharePoint 管理中心的 "已删除的网站" 页,并使用对组织具有管理员权限的帐户进行登录。Go to the Deleted sites page of the new SharePoint admin center, and sign in with an account that has admin permissions for your organization.

备注

如果你有 Office 365 德国,请登录到 Microsoft 365 管理中心,然后浏览到 SharePoint 管理中心并打开 "已删除的网站" 页。If you have Office 365 Germany, sign in to the Microsoft 365 admin center, then browse to the SharePoint admin center and open the Deleted sites page.
如果你有由世纪互联(中国)运营的 Office 365,请登录到 Microsoft 365 管理中心,然后浏览到 SharePoint 管理中心并打开 "已删除的网站" 页。If you have Office 365 operated by 21Vianet (China), sign in to the Microsoft 365 admin center, then browse to the SharePoint admin center and open the Deleted sites page.

  1. 在左侧栏中,选择一个网站。In the left column, select a site.

  2. 依次选择 "删除" 和 "确认",选择 "删除"。Select Delete, and to confirm, select Delete.

若要使用 PowerShell 永久删除网站(包括 Microsoft 365 组连接的团队网站),请按照以下步骤操作:To permanently delete sites (including Microsoft 365 group-connected team sites) by using PowerShell, follow these steps:

  1. 下载最新版 SharePoint Online 命令行管理程序Download the latest SharePoint Online Management Shell.

    备注

    如果已安装早期版本的 SharePoint Online 命令行管理程序,请转到 "添加或删除程序" 并卸载 "SharePoint Online 命令行管理程序"。If you installed a previous version of the SharePoint Online Management Shell, go to Add or remove programs and uninstall "SharePoint Online Management Shell."
    在 "下载中心" 页上,选择您的语言,然后单击 "下载" 按钮。On the Download Center page, select your language and then click the Download button. 系统将要求你选择下载 x64 和 x86 .msi 文件。You'll be asked to choose between downloading a x64 and x86 .msi file. 如果运行的是64位版本的 Windows 或 x86 文件(如果运行的是32位版本),请下载 x64 文件。Download the x64 file if you're running the 64-bit version of Windows or the x86 file if you're running the 32-bit version. 如果您不知道,请参阅我运行的是哪个版本的 Windows 操作系统?If you don't know, see Which version of Windows operating system am I running?. 文件下载完成后,运行它并按照安装向导中的步骤进行操作。After the file downloads, run it and follow the steps in the Setup Wizard.

  2. 在 Microsoft 365 中以全局管理员或 SharePoint 管理员身份连接到 SharePoint。Connect to SharePoint as a global admin or SharePoint admin in Microsoft 365. 若要了解具体操作步骤,请参阅 SharePoint Online 命令行管理程序入门To learn how, see Getting started with SharePoint Online Management Shell.

  3. 运行以下命令:Run the following command:

    Remove-SPODeletedSite -Identity https://contoso.sharepoint.com/sites/sitetoremove
    

(其中 https://contoso.sharepoint.com/sites/sitetoremove 是要永久删除的网站的 URL)。(Where https://contoso.sharepoint.com/sites/sitetoremove is the URL of the site you want to permanently delete). 有关使用此命令的详细信息,请参阅remove-spodeletedsiteFor more info about using this command, see Remove-SPODeletedSite.

选项摘要Summary of options

网站类型Site type 如何删除How to delete 如何永久删除How to permanently delete
根网站Root site 不建议。Not recommended. 将根网站替换为其他网站Replace the root site with a different site. 当网站不再是根网站时,其 URL 将为/sites/archive-datetime,您可以从新 SharePoint 管理中心的 "活动网站" 页或使用 PowerShell 将其删除。When the site is no longer a root site, its URL will be /sites/archive-datetime, and you can delete it from the Active sites page of the new SharePoint admin center or by using PowerShell 从新 SharePoint 管理中心的 "已删除的网站" 页面或使用 PowerShellFrom the Deleted sites page of the new SharePoint admin center or by using PowerShell
通信站点Communication sites 从新 SharePoint 管理中心的 "活动网站" 页面或使用 PowerShell 删除它们Delete them from the Active sites page of the new SharePoint admin center or by using PowerShell 从新 SharePoint 管理中心的 "已删除的网站" 页面或使用 PowerShellFrom the Deleted sites page of the new SharePoint admin center or by using PowerShell
Microsoft 365 组连接的团队网站Microsoft 365 group-connected team sites 从 Microsoft 365 管理中心、新 SharePoint 管理中心的 "活动网站" 页或使用 PowerShell 删除 Microsoft 365 组及其所有资源。Delete Microsoft 365 groups and all their resources from the Microsoft 365 admin center, the Active sites page of the new SharePoint admin center, or by using PowerShell 仅从 PowerShellFrom PowerShell only
中心网站(在中心列中指定为 "(中心网站)" 的网站)Hub sites (those designated with "(Hub site)" in the Hub column) 将其从新 SharePoint 管理中心的 "活动网站" 页面中的中心网站注销,或使用 PowerShell 将其注销,然后根据网站类型将其删除Unregister them as hub sites from the Active sites page of the new SharePoint admin center, or by using PowerShell, and then delete them based on their site type 基于其网站类型Based on their site type
经典网站Classic sites 从新 SharePoint 管理中心的 "活动网站" 页面或使用 PowerShell 删除它们Delete them from the Active sites page of the new SharePoint admin center or by using PowerShell 从新 SharePoint 管理中心的 "已删除的网站" 页面或使用 PowerShellFrom the Deleted sites page of the new SharePoint admin center or by using PowerShell

备注

与中心相关联的网站可以像其他任何网站一样根据其模板删除。Sites associated with a hub can be deleted like any other site based on their template.

另请参阅See also

有关删除网站和子网站的用户说明User instructions for deleting sites and subsites