Delete Method

Remove the file from the package.

Syntax

object.Delete

The object is an expression that evaluates to a PackageFile object.

Remarks

The Delete method removes the current file from the PackageFiles collection and deletes the file data from the package.

After calling this method, Count value for the collection and the index values for the files in the collection will change to reflect the deletion. If any other PackageFiles collection objects have been created, such as those returned from the Package control's Find method, they should be updated by calling the Refresh method.

See Also

Index Property