wiki:db.clear_table

db.clear_table

South 0.5 and up

db.clear_table(table_name)

Deletes all rows from the table table_name.

Examples

Clear all cached geocode results, as the schema is changing:

db.clear_table('core_geocoded')
db.add_column('core_geocoded', ...)