]> wimlib.net Git - wimlib/blob - doc/imagex-delete.1.in
Improve handling of invalid filenames
[wimlib] / doc / imagex-delete.1.in
1 .TH IMAGEX "1" "May 2013" "@IMAGEX_PROGNAME@ @VERSION@" "User Commands"
2 .SH NAME
3 @IMAGEX_PROGNAME@-delete \- Delete an image from a WIM archive
4 .SH SYNOPSIS
5 \fB@IMAGEX_PROGNAME@ delete\fR \fIWIMFILE\fR \fIIMAGE\fR [--check]
6 .SH DESCRIPTION
7 \fB@IMAGEX_PROGNAME@ delete\fR deletes the specified image from the Windows Imaging (WIM)
8 file \fIWIMFILE\fR.
9 .PP
10 \fIIMAGE\fR specifies the WIM image to deleted.  It may be a 1-based index of an
11 image in the WIM, the name of an image in the WIM, or the keyword "all" to
12 indicate that all images are to be deleted.  Use the \fB@IMAGEX_PROGNAME@ info\fR (1)
13 command to show what images a WIM file contains.
14 .SH NOTES
15 By default, the WIM file is rebuilt with all unnecessary file data removed.
16 This is different from Microsoft's imagex.exe, which only will delete the
17 directory tree metadata and XML data for this operation.  (See the \fB--soft\fR
18 option for the other kind of delete).
19 .PP
20 Also, unlike Microsoft's imagex.exe, it is legal to delete all the images from a
21 WIM and have a WIM with 0 images, although such a file wouldn't be very useful.
22 .PP
23 \fB@IMAGEX_PROGNAME@ delete\fR does not support split WIMs.
24 .SH OPTIONS
25 .TP 6
26 \fB--check\fR
27 When reading \fIWIMFILE\fR, verify its integrity if the integrity table is
28 present; additionally, when rewriting \fIWIMFILE\fR after the specified image was
29 deleted, write an integrity table.  If this option is not specified, no integrity
30 table is included in the new WIM file, even if there was one before.
31 .TP 6
32 \fB--soft\fR
33 Perform a "soft delete".  Specifying this flag overrides the default behavior of
34 rebuilding the entire WIM after deleting an image.  Instead, only minimal
35 changes to correctly remove the image from the WIM will be taken.  In
36 particular, all streams will be left alone, even if they are no longer
37 referenced.  This is probably not what you want, because almost no space will be
38 saved by deleting an image in this way.
39 .IP ""
40 You may use \fB@IMAGEX_PROGNAME@ optimize\fR to delete unreferenced streams from a WIM that
41 has had images soft-deleted from it.
42 .SH EXAMPLES
43 Delete the first image from 'boot.wim':
44 .RS
45 .PP
46 @IMAGEX_PROGNAME@ delete boot.wim 1
47 .RE
48 .PP
49 .SH SEE ALSO
50 .BR @IMAGEX_PROGNAME@ (1)
51 .BR @IMAGEX_PROGNAME@-info (1)
52 .BR @IMAGEX_PROGNAME@-optimize (1)