Evotec

Project

PSWriteOffice

PSWriteOffice is an open-source PowerShell and .NET project with packages, release history, and technical documentation.

Stars 144
Forks 12
Open issues 16
PowerShell Gallery downloads 150,904
Release v0.2.0
Language: C# Updated: 2026-04-06

API Reference

Cmdlet

Remove-OfficePowerPointSlide

Namespace PSWriteOffice
Inputs
None
Outputs
System.Object

Removes a slide by index.

Remarks

Supports -WhatIf/-Confirm thanks to SupportsShouldProcess.

Examples

Authored help example

Delete the first slide.

PS>


Remove-OfficePowerPointSlide -Presentation $ppt -Index 0
        

Removes slide 1 from the deck.

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.

Syntax

Remove-OfficePowerPointSlide -Index <Int32> -Presentation <PowerPointPresentation> [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Index Int32 requiredposition: namedpipeline: False
Zero-based slide index.
Presentation PowerPointPresentation requiredposition: namedpipeline: False
Presentation to modify.

Outputs

System.Object