Deletes the object referred to by the given geoprocessing value object.
[Visual Basic 6.0] Sub Delete(
ByVal pGPValue As IGPValue _
)
[Visual Basic .NET] Public Sub Delete ( _ ByVal pGPValue As IGPValue _ )
[C#] public void Delete ( IGPValue pGPValue );
[Java] public void delete ( IGPValue pGPValue ) throws IOException, AutomationException
[C++] HRESULT Delete( IGPValue* pGPValue );
The Delete method is typically used in combination with the Exists method to first check existence of a value such as in the case of checking if the OverwriteOutput setting is true or false. A code sample is included below. For an extended code sample refer to the Execute Method section of the Building Geoprocessing Functions technical document.