zip.DeleteFile(id, idx)
idx
in the zip archive specified by id
.
Note that the change to the zip archive isn't done immediately but is postponed until you call zip.CloseArchive().
This function can also operate on directories. See Zip archive basics for details.