| external help file | Microsoft.Online.SharePoint.PowerShell.dll-Help.xml |
|---|---|
| Module Name | Microsoft.Online.SharePoint.PowerShell |
| online version | https://learn.microsoft.com/powershell/module/microsoft.online.sharepoint.powershell/remove-spodeletedcontainer |
| applicable | SharePoint Online |
| title | Remove-SPODeletedContainer |
| schema | 2.0.0 |
| author | cindylay |
| ms.author | cindylay |
| ms.reviewer |
Permanently deletes the specified Container from the Recycle Bin. This action cannot be undone.
Remove-SPODeletedContainer [-Identity] <SPOContainerPipeBind> [-Force] [-WhatIf] [-Confirm]
[<CommonParameters>]
The Remove-SPODeletedContainer cmdlet permanently removes a deleted File Storage Container from the Recycle Bin. A permanently deleted Container cannot be recovered. You must be at least a SharePoint Online administrator to run the cmdlet.
Important
We do not generally recommend that you permanently delete Containers.
For permissions and the most current information about Windows PowerShell for SharePoint Online, see the online documentation at Intro to SharePoint Online Management Shell.
Remove-SPODeletedContainer -Identity b66f5b2e-4cbd-4754-9ad3-8291c2c81adeThis example removes a deleted Container with the ContainerId b66f5b2e-4cbd-4754-9ad3-8291c2c81ade from the Recycle Bin and deletes it permanently.
Applicable: SharePoint Online
Whether to remove the deleted container without prompting for confirmation.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseApplicable: SharePoint Online
Specifies the <ContainerId> of the Container to be permanently deleted.
Type: Microsoft.Online.SharePoint.PowerShell.SPOContainerPipeBind
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalsePrompts you for confirmation before running the cmdlet.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseShows what would happen if the cmdlet runs. The cmdlet is not run.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.