Storages & Files Remove
Remove method

Removes an item from the storage (a sub-storage or a stream)

Syntax:

object.Remove( itemName)

Parameters:

itemName - the name of the item to be removed (sub-storage or stream)

Examples:

Set sf = Server.CreateObject("newObjects.utilctls.SFMain")
Set dir = sf.OpenDirectory("C:\adirectory")
dir.Remove("myfile.txt")

Remarks:

Only direct descendants of the storage can be removed by this method.

The item being removed must not be opened.

Applies to: SFStorage object

newObjects Copyright 2001-2006 newObjects [ ]