Function: deleteGradeCategory()
function deleteGradeCategory(
context,
siteUrl,
courseId,
categoryId
): Promise<{
changed: string;
}>;
Defined in: areas/grades/gradebook.ts:437
Deletes a grade category. Moodle moves what it held (items and categories) into its parent and deletes the grades of its total; the course's own category can't be deleted.
Parameters
| Parameter | Type |
|---|---|
context | BrowserContext |
siteUrl | string |
courseId | number |
categoryId | number |
Returns
Promise<{
changed: string;
}>