Saltar al contenido principal

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​

ParameterType
contextBrowserContext
siteUrlstring
courseIdnumber
categoryIdnumber

Returns​

Promise<{ changed: string; }>