SQLiteDatabase.ClearDB C# (CSharp) Method

ClearDB() public method

Allows the programmer to easily delete all data from the DB.
public ClearDB ( ) : bool
return bool
    public bool ClearDB()
    {
        DataTable tables;
        try
        {
            tables = this.GetDataTable("select NAME from SQLITE_MASTER where type='table' order by NAME;");
            foreach (DataRow table in tables.Rows)
            {
                this.ClearTable(table["NAME"].ToString());
            }
            return true;
        }
        catch
        {
            return false;
        }
    }