CmdID / PowerShell / Cmdlets / Remove
Remove-WindowsImage
Deletes the specified volume image from a WIM file that has multiple volume images. Windows Server PowerShell reference
From the Windows Server PowerShell reference 7 parameters Its page in the reference
Parameters
-CheckIntegrityDetects and tracks .wim file corruption when used with the Add-WindowsImage, Dismount-WindowsImage, or Save-WindowsImage cmdlet.-ImagePathSpecifies the location of a WIM file.-IndexSpecifies the index number of a Windows image in a WIM or VHD file.-LogLevel, -LLSpecifies the maximum output level shown in the logs.-LogPath, -LPSpecifies the full path and file name to log to.-NameSpecifies the name of an image in a WIM file.-ScratchDirectorySpecifies a temporary directory that will be used when extracting files for use during servicing.