remove-record-value.ais

execute(input)
  database = service "database_tasks"
  task = database.first({
    from: "Task (id, notes)",
    where: { id: input.taskId, deleted: false },
    locking: { type: "forUpdate" }
  })
  if task == null
    fail NotFound "Active task not found"
  end
  // Clear the optional value while retaining the Task record.
  task.remove("notes")
  task.save()
  return { taskId: task.id, cleared: true }
end
All examples

Search AISDL

Search the paper, references and examples.