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


Xceed.Zip Assembly > Xceed.Zip Namespace > QuickZip Class > Remove Method : Remove(String,Boolean,String[]) Method
The fully-qualified path and name of the zip file.
Boolean value indicating if files contained within sub-folders should be removed from the zip file.
The files to remove from zipFileName. Cannot be a null reference (Nothing in Visual Basic).
Removes files from a zip file specifying if files contained within sub-folders will also be removed.
Syntax
'Declaration
 
Public Overloads Shared Sub Remove( _
   ByVal zipFileName As String, _
   ByVal recursive As Boolean, _
   ByVal ParamArray filesToRemove() As String _
) 
'Usage
 
Dim zipFileName As String
Dim recursive As Boolean
Dim filesToRemove() As String
 
QuickZip.Remove(zipFileName, recursive, filesToRemove)
public static void Remove( 
   string zipFileName,
   bool recursive,
   params string[] filesToRemove
)

Parameters

zipFileName
The fully-qualified path and name of the zip file.
recursive
Boolean value indicating if files contained within sub-folders should be removed from the zip file.
filesToRemove
The files to remove from zipFileName. Cannot be a null reference (Nothing in Visual Basic).
Remarks

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