Remove-SPODeletedSite
Removes a SharePoint Online deleted site collection from the Recycle Bin.
Syntax
Remove-SPODeletedSite
[-Confirm]
-Identity <SpoSitePipeBind>
[-NoWait]
[-WhatIf]
[<CommonParameters>]
Description
The Remove-SPODeletedSite
cmdlet permanently removes a SharePoint Online deleted site collection from the Recycle Bin.
You must be at least a SharePoint administrator to run the cmdlet.
For permissions and the most current information about Windows PowerShell for SharePoint Online, see the online documentation at Intro to SharePoint Online Management Shell.
Note: As of today, the modern admin center UI does not allow permanent deletion of group connected site. The use of this cmdlet does allow the deletion, but when this occurs it does not delete the associated group, just the site.
Examples
-----------------------EXAMPLE-----------------------------
Remove-SPODeletedSite -Identity https://contoso.sharepoint.com/sites/sitetoremove
This example removes a SharePoint Online deleted site collection named https://contoso.sharepoint.com/sites/sitetoremove from the Recycle Bin and deletes it permanently.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-Identity
Specifies the URL of the site collection to remove.
Type: | SpoSitePipeBind |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-NoWait
Continues without the status being polled. Polling the action can slow its progress.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |