Trash an existing Confluence page.
Remove-ConfluencePage -ApiUri <Uri> -Credential <PSCredential> [-PageID] <Int32[]> [-WhatIf] [-Confirm]
Delete existing Confluence content by page ID.
This trashes most content, but will permanently delete “un-trashable” content.
Untested against non-page content.
Remove-ConfluencePage -PageID 123456 -Verbose -Confirm
Trash the wiki page with ID 123456. Verbose and Confirm flags both active; you will be prompted before removal.
Get-ConfluencePage -SpaceKey ABC -Title '*test*' | Remove-ConfluencePage -WhatIf
For all wiki pages in space ABC with “test” somewhere in the name, simulate the each page being trashed. -WhatIf prevents any removals.
Get-ConfluencePage -Label 'deleteMe' | Remove-ConfluencePage
For all wiki pages with the label “deleteMe” applied, trash each page.
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 page ID to delete. Accepts multiple IDs via pipeline input.
Type: Int32[]
Parameter Sets: (All)
Aliases: ID
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
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