Skip to main content

Clear

Clear Method

Table Of Clear Method​

Parameters​

  • table (the table name to clear)
clear(table)

Example Usage​

await db.clear("table_name");
// -> clears all 'table_name' table rows & data

Returned Data​

Returns true if the table has been cleared successfully

true