Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

Stars 654
Forks 82
Open issues 1
Total downloads 4,320,051
Release OfficeIMO-v3.5.3
Language: C# Updated: 2026-11-03
Cmdlet

Remove-OfficeConfluencePage

Module
PSWriteOffice
Inputs
None
Outputs
OfficeIMO.Confluence.ConfluencePageWritePlan

Plans or deletes a Confluence Cloud page.

Syntax

Remove-OfficeConfluencePage
[-Draft]
[-PageId] <String>
[-PassThru]
[-PlanOnly]
[-Purge]
[-Session <ConfluenceSession>]
[<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Inspect a permanent-delete request without contacting Confluence.

Remove-OfficeConfluencePage -PageId 12345 -Purge -PlanOnly

Returns the exact DELETE request plan without using a session.

Move a current page to the trash.

Remove-OfficeConfluencePage -Session $session -PageId 12345

Uses PowerShell ShouldProcess before sending the non-retried delete request.

Parameters

-Draft SwitchParameter optional
Delete a draft page.
-PageId String requiredposition: 0
Page identifier.
-PassThru SwitchParameter optional
Return the completed delete plan after a live operation.
-PlanOnly SwitchParameter optional
Return the exact delete plan without contacting Confluence.
-Purge SwitchParameter optional
Permanently delete a page that is already in the trash.
-Session ConfluenceSession optional
Configured session required for a live delete operation.

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.