# Remove-OfficeConfluencePage

Plans or deletes a Confluence Cloud page. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteOffice API Reference.

Project

PSWriteOffice

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

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **727**

Forks **84**

Open issues **7**

Total downloads **5,275,783**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-24

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`None`

**Outputs**

`OfficeIMO.Confluence.ConfluencePageWritePlan`

**Source**

[RemoveOfficeConfluencePageCommand.cs:22](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Confluence/RemoveOfficeConfluencePageCommand.cs#L22) 

Plans or deletes a Confluence Cloud page.

## Syntax

```
Remove-OfficeConfluencePage
[-Draft]
[-PageId] <String>
[-PassThru]
[-PlanOnly]
[-Purge]
[-Session <ConfluenceSession>]
[<CommonParameters>]
```

[#](#method-remove-officeconfluencepage-switchparameter-string-switchparameter-switchparameter-switchparameter-confluencesession)

Parameter set: `All Parameter Sets`

## Examples

### Inspect a permanent-delete request without contacting Confluence.

```powershell
Remove-OfficeConfluencePage -PageId 12345 -Purge -PlanOnly
```

Returns the exact DELETE request plan without using a session.

### Move a current page to the trash.

```powershell
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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:1CFA7E4ED3EF03A7F097A56E898C71BD828FF538227EBAA73D456BAB345DB7D5 -->
