powered by
Deletes all tasks from a project's task table. This is a destructive operation that removes all task data and history.
task_clean(project, con = NULL)
Invisibly returns NULL. Called for side effects (truncating task table).
Character string specifying the project name.
An optional database connection. If NULL, a new connection is created and closed automatically.
Uses SQL TRUNCATE to efficiently remove all rows from the task table. This is faster than DELETE but cannot be rolled back.
Warning: All task history, including completion status and runtime information, will be permanently lost.
This function is automatically called by task_add when clean = TRUE.
task_add
clean = TRUE
task_add, task_reset
task_reset
if (FALSE) { # Not run: # Remove all tasks task_clean("simulation_study") # Add new tasks task_add("simulation_study", num = 200) }
Run the code above in your browser using DataLab