public static function delete($id)
    {
        DB::nonQuery('DELETE FROM `%s` WHERE `%s` = %u', [
            static::$tableName,
            static::_cn(static::$primaryKey ? static::$primaryKey : 'ID'),
            $id,
        ], [static::class,'handleError']);

        return DB::affectedRows() > 0;
    }
public static function delete($id)
    {
        DB::nonQuery('DELETE FROM `%s` WHERE `%s` = %u', [
            static::$tableName,
            static::_cn(static::$primaryKey ? static::$primaryKey : 'ID'),
            $id,
        ], [static::class,'handleError']);

        return DB::affectedRows() > 0;
    }
public static function delete ( $ id ) { DB :: nonQuery ( 'DELETE FROM `%s` WHERE `%s` = %u' , [ static :: $ tableName , static :: _cn ( static :: $ primaryKey ? static :: $ primaryKey : 'ID' ) , $ id , ] , [ static :: class , 'handleError' ] ) ; return DB :: affectedRows ( ) > 0 ; }
Delete by ID

@param int $id
@return bool True if database returns number of affected rows above 0. False otherwise.
Delete by ID