Remove an existing Confluence space.
Remove-ConfluenceSpace -ApiUri <Uri> -Credential <PSCredential> [-SpaceKey] <String[]> [-Force] [-WhatIf] [-Confirm]
Delete an existing Confluence space, including child content.
Note: The space is deleted in a long running task, so the space cannot be considered deleted when this resource returns.
Remove-ConfluenceSpace -SpaceKey ABC -WhatIf
Simulates the deletion of wiki space ABC and all child content. -WhatIf parameter prevents removal of content.
Remove-ConfluenceSpace -SpaceKey XYZ -Force
Delete wiki space XYZ and all child content below it.
By default, you will be prompted to confirm removal. (“Are you sure? Y/N”) -Force suppresses all confirmation prompts and carries out the deletion.
The URi of the API interface. Value can be set persistently with Set-ConfluenceInfo.
Type: Uri
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Confluence’s credentials for authentication. Value can be set persistently with Set-ConfluenceInfo.
Type: PSCredential
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Certificate for authentication.
Type: X509Certificate
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The key (short code) of the space to delete. Accepts multiple keys via pipeline input.
Type: String[]
Parameter Sets: (All)
Aliases: Key
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
Forces the deletion of the space without prompting for confirmation.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False