1 .TH IMAGEX "1" "November 2012" "imagex (wimlib) wimlib @VERSION@" "User Commands"
3 imagex-delete \- Delete an image from a WIM archive
6 \fBimagex delete\fR \fIWIMFILE\fR \fIIMAGE\fR [--check]
11 \fBimagex delete\fR deletes the specified image from the Windows Imaging (WIM)
14 \fIIMAGE\fR specifies the WIM image to deleted. It may be a 1-based index of an
15 image in the WIM, the name of an image in the WIM, or the keyword "all" to
16 indicate that all images are to be deleted. Use the \fBimagex info\fR (1)
17 command to show what images a WIM file contains.
21 The WIM file is rebuilt with all unnecessary file data removed. This is
22 different from Microsoft's imagex.exe, which only will delete the directory tree
23 metadata and XML data for this operation.
25 Also, unlike imagex.exe, it is legal to delete all the images from a WIM and
26 have a WIM with 0 images, although such a file wouldn't be very useful.
28 \fBimagex delete\fR does not support split WIMs.
33 When reading \fIWIMFILE\fR, verify its integrity if the integrity table is
34 present; additionally, when rewriting \fIWIMFILE\fR after the specified image was
35 deleted, write an integrity table. If this option is not specified, no integrity
36 table is included in the new WIM file, even if there was one before.
39 Delete the first image from 'boot.wim':
42 image delete boot.wim 1