forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiBdcf123aBurak Boduroğlu2 months ago674 commits

deleteClassInstance.ts12 lines, 604 bytesHistoryRawDownload
1import { client } from "../client";
2
3/**
4 * Detaches an instance from a class. The second segment is the **instance id**
5 * (`getClassInstances`), not a course id — two sections teaching the same
6 * course hold two instances. Everything the class taught under it goes with
7 * it: exams, homework, sessions, roll call, and the whole roster, hand-placed
8 * rows included (an enrollment cannot outlive its instance).
9 */
10export function deleteClassInstance(classId: string, instanceId: string): Promise<void> {
11 return client<void>(`/classes/${classId}/instances/${instanceId}`, { method: "DELETE" });
12}