wiki:db.delete_table

Version 2 (modified by andrew, 5 years ago) (diff)

--

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)