Deleting Hierarchies
Deleting Hierarchies
For deleting Hierarchies from Itslearning you only need to know the SyncId of the Hierarchy or Hierarchies that have to be deleted.
DeleteHierarchy
This function deletes the specified Hierarchy from Itslearning. Note that deleted Hierarchies will first be moved to the trash can, and can only be completely deleted when the quarantine period is over. Also, when creating / updating a Hierarchy with the same SyncId, the deleted Hierarchy will be restored.
Syntax:
OperationResult warning = ImsEsClient.DeleteHierarchy(string syncId);
Parameters:
syncId:
The Id of the Hierarchy to be deleted.
Returns:
The OperationResult containing the warning that Itslearning has send back, or if there was none, null.
Exceptions:
- ImsEsException: If IMS-ES encountered an error in Itslearning, this exception will be thrown.
DeleteHierarchies
This function deletes the specified Hierarchy from Itslearning. Note that deleted Hierarchies will first be moved to the trash can, and can only be completely deleted when the quarantine period is over. Also, when creating / updating a Hierarchy with the same SyncId, the deleted Hierarchy will be restored.
Syntax:
BatchOperationResult warnings = ImsEsClient.DeleteHierarchies(ICollection<string> syncIds);
Parameters:
syncIds:
An ICollection with the Ids of the Hierarchies to be deleted.
Returns:
A BatchOperationResult with the list of warnings that Itslearning has send back (this list can be empty).
Exceptions:
- ImsEsBatchException: If IMS-ES encountered an error in Itslearning, this exception will be thrown.