wimlib-imagex-delete
Delete an image from a WIM archive
- Provided by: wimtools (Version: 1.9.0-2)
- Source: wimlib
- Report a bug
Delete an image from a WIM archive
wimlib-imagex delete WIMFILE IMAGE [OPTION...]
wimlib-imagex delete deletes the specified image from the Windows Imaging (WIM) file WIMFILE. This command is also available as simply wimdelete if the appropriate hard link or batch file has been installed.
IMAGE specifies the WIM image in WIMFILE to delete. It may be a 1-based index of an image in the WIM, the name of an image in the WIM, or the keyword "all" to indicate that all images are to be deleted. Use the wimlib-imagex info (1) command to show what images a WIM file contains.
By default, the WIM file is rebuilt with all unnecessary file data removed. This is different from Microsoft's ImageX and DISM, which only will delete the directory tree metadata and XML data for this operation. (See the --soft option for the other kind of delete).
Also wimlib allows you to delete all the images from a WIM and have a WIM with 0 images, although such a file wouldn't be very useful.
wimlib-imagex delete does not support split WIMs.
Delete the first image from 'boot.wim':
wimlib-imagex delete boot.wim 1
wimlib-imagex(1) wimlib-imagex-info(1) wimlib-imagex-optimize(1)