adTempus API
PreviousUpNext
IADTIndependentObject::Delete Method

Deletes the object from the database

C++
HRESULT Delete();
C#
Delete();
Visual Basic
Sub Delete()

You must have saDelete permission for the object or the method will fail with error ADT_E_NO_PERMISSION. 

If the object is still in use by another object (for example, you are trying to delete a script that is still referenced by a job) the method will fail with error ADT_E_REFERENTIAL_INTEGRITY_VIOLATION.

adTempus API Reference version 3.0.0.0, revised 10/30/2008