Microsoft Internet Security and Acceleration Server 2000

Deleting a Filter

The following examples show how to delete a filter.

Visual Basic Example

Use the following Visual Basic code to remove an ISA Web filter.

Set objWebFilters = objFPC.Arrays.GetContainingArray.Extensions.WebFilters
objWebFilters.Remove (Guid)
objWebFilters.Save

Visual Basic Scripting Edition Example

To delete the filter, create a file called Delete.vbs, and then insert the following code:

set FPC = WScript.CreateObject("FPC.Root")
Set filters = FPC.Arrays.GetContainingArray.Extensions.WebFilters
filters.Remove("{5b6f6af3-3928-44a3-90f6-c96295c51da6}")
filters.Save
WScript.Echo "done"