API Reference
Command
Remove-OfficePowerPointSlide
Removes a slide by index.
Remarks
Removes a slide by index.
Examples
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 SetsParameters
- Index Int32
- Zero-based slide index.
- Presentation PowerPointPresentation
- Presentation to modify.
Outputs
System.Object