Version: v0.8.1 - Beta.  We welcome contributors & feedback.

Db.xDangerDeleteAllRows

Db.xDangerDeleteAllRows($tableName) -> number

Description

Delete all rows from the given table. This is the equivalent of TRUNCATE TABLE.

Returns the number of rows deleted.

$numRowsDeleted = Db.xDangerDeleteAllRows('tempCache')

Db.selectRows('select * from tempCache')
//= []

See Also