Deletes the specified record from the current database.
When you call this method, Rational® ClearQuest® deletes the specified entity using the action whose name you specified in the deleteActionName parameter. This action name must correspond to a valid action in the schema and it must be legal to perform the action on the specified entity.
VBScript
session.DeleteEntity entity, deleteActionName
Perl
$session->DeleteEntity(entity, deleteActionName);
VBScript
set sessionObj = GetSession
' Delete the record whose ID is "BUGDB00000042" using the "delete"
' action
set objToDelete = sessionObj.GetEntity("defect", "BUGDB00000042")
sessionObj.DeleteEntity objToDelete, "delete"
Perl
$sessionobj = $entity->GetSession();
# Delete the record whose ID is "BUGDB00000010" using the "delete"
# action
$objtodelete = $sessionobj->GetEntity("defect", "BUGDB00000010");
$sessionobj->DeleteEntity($objtodelete,"delete");