Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Remove-OfficePowerPointSlide

Module
PSWriteOffice
Inputs
PSWriteOffice.Foundation.PowerPointSlideSelector[]

Removes selected native slides or one-based slide positions.

Syntax

Remove-OfficePowerPointSlide
[-Document <PowerPointDocument>]
[-Slide] <PowerPointSlideSelector[]>
[<CommonParameters>]
#
Parameter set: Slide

Examples

Remove two positions without shifts changing the selection.

Remove-OfficePowerPointSlide -Document $deck -Slide 1, 3 -Confirm:$false

Preview removal of a native slide.

$slide | Remove-OfficePowerPointSlide -WhatIf

Parameters

-Document PowerPointDocument optional
Gets or sets the document for numeric selection; omission uses the enclosing scope or native slide owner.
-Slide PowerPointSlideSelector[] requiredposition: 0pipeline: True (ByValue)
Gets or sets native slides or their one-based positions; each argument array is resolved before removal.

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.