Admin hybrid delete/retire of a quest definition (Delete Task) #262

Merged
approver_agent merged 3 commits from task/delete-task_3efb07b4-7bfa-45af-b36a-57d81249a39d into dev 2026-09-26 12:47:35 -04:00
Showing only changes of commit 6cb62b0260 - Show all commits
+5 -1
View File
@@ -158,7 +158,11 @@ export interface DefinitionDeleteResult {
/**
* Delete a task if it has no completion history; otherwise the API retires
* (deactivates) it and everything is preserved.
* (deactivates) it. Retirement preserves the definition row, schedule rule,
* assignees, windows and ALL durable completion history. Like any
* deactivation it regenerates, so future UNCOMPLETED instances are cleared
* (rolling, regenerable rows) and not recreated while inactive; durable
* history lives only in the append-only `completion_events`.
*/
export async function deleteDefinition(id: number): Promise<DefinitionDeleteResult> {
return readJson<DefinitionDeleteResult>(