Cmdlets for Confluence

Build 25.0.9434

Remove-Confluence Cmdlet

Parameters   Output Objects  

Deletes Confluence data.

Syntax

Remove-Confluence [parameters]

Remarks

The Remove-Confluence cmdlet allows you to use a syntax similar to SQL DELETE statements to delete Confluence data.

$conn = Connect-Confluence -User "admin" -APIToken "myApiToken" -Url "https://yoursitename.atlassian.net" -Timezone "America/New_York" 
Remove-Confluence -Connection $conn -Table "Pages" -Id "10000"
The Where parameter can also be used to specify the primary key:
Remove-Confluence -Connection $conn -Table "exTablePowershell;" -Where "Id = 10000"
The primary key can also be passed to the cmdlet along the pipeline:
Select-Confluence -Connection $conn -Table Pages -Where "Id = '10000'" | Remove-Confluence

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434