Saltar al contenido principal

Function: deleteQuestions()

function deleteQuestions(
context,
siteUrl,
activityId,
questionIds
): Promise<{
changed: string;
deleted: number[];
hidden: number[];
}>;

Defined in: areas/questions/banks.ts:420

Deletes questions from a bank, every version of each, as the bank's delete action does: asked, then confirmed. Moodle doesn't delete a question a quiz uses: it hides it, and hidden lists those.

Parameters​

ParameterType
contextBrowserContext
siteUrlstring
activityIdnumber
questionIdsnumber[]

Returns​

Promise<{ changed: string; deleted: number[]; hidden: number[]; }>