Xceed Real-Time Zip for .NET Documentation
Remove(String,String[]) Method


Xceed.Zip Assembly > Xceed.Zip Namespace > QuickZip Class > Remove Method : Remove(String,String[]) Method
The fully-qualified path and name of the zip file.
The files to remove from zipFileName. Cannot be a null reference (Nothing in Visual Basic).
Removes files from a zip file.
Syntax
'Declaration
 
Public Overloads Shared Sub Remove( _

   ByVal zipFileName As String, _

   ByVal ParamArray filesToRemove() As String _

) 
'Usage
 
Dim zipFileName As String

Dim filesToRemove() As String

 

QuickZip.Remove(zipFileName, filesToRemove)
public static void Remove( 

   string zipFileName,

   params string[] filesToRemove

)

Parameters

zipFileName
The fully-qualified path and name of the zip file.
filesToRemove
The files to remove from zipFileName. Cannot be a null reference (Nothing in Visual Basic).
Remarks

Note that files contained within sub-folders will also be removed from the zip file.

Zip files are case sensitive therefore the string passed in the filesToRemove parameter, will be used "as-is".

For example, if a zip file contains a file named "FILE.TXT" and "file.txt" is passed to the filesToRemove parameter, "FILE.TXT" will not be removed.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

QuickZip Class
QuickZip Members
Overload List