Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Remove-SPODeletedSite

Removes a SharePoint Online deleted site collection from the Recycle Bin.

Syntax

Default (Default)

Remove-SPODeletedSite
 -Identity <SpoSitePipeBind>
 [-NoWait]
 [-WhatIf]
 [-Confirm]
 [<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

Applicable: SharePoint Online

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:System.Management.Automation.SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

-Identity

Applicable: SharePoint Online

Specifies the URL of the site collection to remove.

Parameter properties

Type:Microsoft.Online.SharePoint.PowerShell.SpoSitePipeBind
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-NoWait

Applicable: SharePoint Online

Continues without the status being polled. Polling the action can slow its progress.

Parameter properties

Type:System.Management.Automation.SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-WhatIf

Applicable: SharePoint Online

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Parameter properties

Type:System.Management.Automation.SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Related Links


Feedback

Was this page helpful?