ITrkSession.Clear (method)

method Clear
Syntax: object.Clear
Description:
The Clear method deletes the fields of the session object.

Example:

Dim oTrkItemAgent As Object
Dim oTrkSession As Object
Dim oTrkItems As Object
Set oTrkItemAgent = CreateObject("Tracker.TrkItemAgent")
Set oTrkSession = CreateObject("Tracker.TrkSession")
oTrkSession.AddProject ProjectName, "ADMINISTRATOR", ""
oTrkItemAgent.SessionId = oTrkSession.SessionId
oTrkSession.Clear
oTrkItemAgent.Execute oTrkItems