Skip to contents

Removes all taskqueue-related tables, types, and data from the PostgreSQL database. This is a destructive operation that cannot be undone.

Usage

db_clean()

Value

Invisibly returns NULL. Called for side effects (dropping database objects).

Details

This function drops:

  • All project task tables

  • The project_resource table

  • The project table

  • The resource table

  • All custom types (e.g., task_status)

Warning: This permanently deletes all projects, tasks, and configurations. Use with extreme caution, typically only for testing or complete resets.

After cleaning, you must call db_init to recreate the schema before using taskqueue again.

See also

Examples

if (FALSE) { # \dontrun{
# Not run:
# Clean entire database (destructive!)
db_clean()

# Reinitialize after cleaning
db_init()
} # }