Deleting CourseGroups
Deleting CourseGroups
For deleting CourseGroups from Itslearning you only need to know the SyncId of the CourseGroup or CourseGroups that have to be deleted.
DeleteCourseGroup
This function deletes the specified CourseGroup from Itslearning. Note that deleted CourseGroups 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 CourseGroup with the same SyncId, the deleted CourseGroup will be restored.
Syntax:
OperationResult warning = ImsEsClient.DeleteCourseGroup(string syncId);
Parameters:
syncId:
The Id of the CourseGroup 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.
DeleteCourseGroups
This function deletes the specified CourseGroup from Itslearning. Note that deleted CourseGroups 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 CourseGroup with the same SyncId, the deleted CourseGroup will be restored.
Syntax:
BatchOperationResult warnings = ImsEsClient.DeleteCourseGroups(ICollection<string> syncIds);
Parameters:
syncIds:
An ICollection with the Ids of the CourseGroups 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.