Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Remove-SPODeletedSite

Remove-SPODeletedSite

microsoft.online.sharepoint.powershell-1.dll, microsoft.online.sharepoint.powershell.dll

Synopsis

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

Syntax

Remove-SPODeletedSite [-Identity] [-Confirm] [-WhatIf] [<CommonParameters>]

Detailed Description

The Remove-SPODeletedSite cmdlet permanently removes a SharePoint Online deleted site collection from the Recycle Bin.

You have to be a SharePoint Online global administrator and site collection administrator permissions to run the cmdlet.

For permissions and the most current information about Windows PowerShell for SharePoint Online, see the online documentation at http://go.microsoft.com/fwlink/p/?LinkId=251832 (http://go.microsoft.com/fwlink/p/?LinkId=251832).

Parameters

-Identity <SpoSitePipeBind>

Specifies the URL of the site collection to remove.

Aliases

None

Required?

True

Position

1

Default value

Accept pipeline input?

True

Accept wildcard characters?

False

-Confirm <SwitchParameter>

Prompts you for confirmation before executing the command. For more information, type the following command: get-help about_commonparameters。

Aliases

None

Required?

False

Position

Named

Default value

Accept pipeline input?

False

Accept wildcard characters?

False

-WhatIf <SwitchParameter>

Displays a message that describes the effect of the command instead of executing the command. For more information, type the following command: get-help about_commonparameters

Aliases

None

Required?

False

Position

Named

Default value

Accept pipeline input?

False

Accept wildcard characters?

False

Input Type

Return Type

Notes

None

Examples

--------EXAMPLE--------

This example removes a SharePoint Online deleted site collection named https://contoso.sharepoint.com/sites/sitetoremove from the Recycle Bin and deletes it permanently.

C:\PS>Remove-SPODeletedSite -Identity https://contoso.sharepoint.com/sites/sitetoremove

Introduction to the SharePoint Online management shell
Set up the SharePoint Online Management Shell Windows PowerShell environment
Remove-SPOSite
Get-SPODeletedSite