ZipArchiveEntry.Delete Method ()

.NET Framework (current version)
 

Deletes the entry from the zip archive.

Namespace:   System.IO.Compression
Assembly:  System.IO.Compression (in System.IO.Compression.dll)

public void Delete()

Exception Condition
IOException

The entry is already open for reading or writing.

NotSupportedException

The zip archive for this entry was opened in a mode other than Update.

ObjectDisposedException

The zip archive for this entry has been disposed.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top
Show: