Cmdlet
Remove-OfficePowerPointSlide
Removes selected native slides or one-based slide positions.
Syntax
Remove-OfficePowerPointSlide
[-Document <PowerPointDocument>]
[-Slide] <PowerPointSlideSelector[]>
[<CommonParameters>]#Parameter set:
SlideExamples
Remove two positions without shifts changing the selection.
Remove-OfficePowerPointSlide -Document $deck -Slide 1, 3 -Confirm:$falsePreview removal of a native slide.
$slide | Remove-OfficePowerPointSlide -WhatIfParameters
- -Document PowerPointDocument
- Gets or sets the document for numeric selection; omission uses the enclosing scope or native slide owner.
- -Slide PowerPointSlideSelector[]
- 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.