diff --git a/frontend/src/api/lessons.ts b/frontend/src/api/lessons.ts index a8eddad..684200d 100644 --- a/frontend/src/api/lessons.ts +++ b/frontend/src/api/lessons.ts @@ -124,12 +124,12 @@ export function updateLesson( return apiPatch(`/api/lessons/${id}`, payload); } -export function deleteLesson( - id: number, -): Promise<{ deleted: number; deleted_batch_id: string }> { - return apiDelete<{ deleted: number; deleted_batch_id: string }>( - `/api/lessons/${id}`, - ); +/** Trash, not erase — recoverable. `apiDelete` discards the body, which is the + * established shape here (snippets delete the same way): the batch id is in + * the response, but no caller has needed it and inventing a second delete + * helper to carry it would be the duplication, not the feature. */ +export function deleteLesson(id: number): Promise { + return apiDelete(`/api/lessons/${id}`); } /** The lessons drawn FROM one record — the reverse of `learned_from`.