## db_delete_table

bool db_delete_table (string $tablename)

Deletes a table.

Arguments

tablename is the name of the table that will be deleted. If it is null, the function deletes the last accessed table.

Result

The function returns TRUE if successful or FALSE otherwise.

Example

`// Delete table $result = db_delete_table("mytable");`

See also

db_create_table
Database functions
Database support