<?php $zip = new ZipArchive; if ($zip->open('test.zip') === TRUE) { $zip->deleteIndex(2); $zip->close(); echo 'ok'; } else { echo 'failed'; }?>