wiki:db.delete_table
Last modified 4 years ago Last modified on 12/03/09 08:53:00

db.delete_table

db.delete_table(table_name, cascade=True)

Deletes (drops) the named table from the database. If cascade is True, drops any related constraints as well.

Examples

Usual call:

db.delete_table("core_planet")

Not cascading (beware, may fail):

db.delete_table("core_planet", cascade=False)