1ZIP_DELETE(3)            BSD Library Functions Manual            ZIP_DELETE(3)
2

NAME

4     zip_delete — delete file from zip archive
5

LIBRARY

7     libzip (-lzip)
8

SYNOPSIS

10     #include <zip.h>
11
12     int
13     zip_delete(zip_t *archive, zip_uint64_t index);
14

DESCRIPTION

16     The file at position index in the zip archive archive is marked as
17     deleted.
18

RETURN VALUES

20     Upon successful completion 0 is returned.  Otherwise, -1 is returned and
21     the error code in archive is set to indicate the error.
22

ERRORS

24     zip_delete() fails if:
25
26     [ZIP_ER_INVAL]     index is not a valid file index in archive.
27

SEE ALSO

29     libzip(3), zip_unchange(3)
30

HISTORY

32     zip_delete() was added in libzip 0.6.  In libzip 0.10 the type of index
33     was changed from int to zip_uint64_t.
34

AUTHORS

36     Dieter Baron <dillo@nih.at> and Thomas Klausner <tk@giga.or.at>
37
38BSD                            December 18, 2017                           BSD
Impressum