framework/db/Migration.php
public function delete($table, $condition = '', $params = [])
    {
        $time = $this->beginCommand("delete from $table");
        $this->db->createCommand()->delete($table, $condition, $params)->execute();
        $this->endCommand($time);
    }
public function delete($table, $condition = '', $params = [])
    {
        $time = $this->beginCommand("delete from $table");
        $this->db->createCommand()->delete($table, $condition, $params)->execute();
        $this->endCommand($time);
    }
public function delete ( $ table , $ condition = '' , $ params = [ ] ) { $ time = $ this -> beginCommand ( "delete from $table" ) ; $ this -> db -> createCommand ( ) -> delete ( $ table , $ condition , $ params ) -> execute ( ) ; $ this -> endCommand ( $ time ) ; }
Creates and executes a DELETE SQL statement.
@param string $table the table where the data will be deleted from.
@param array|string $condition the conditions that will be put in the WHERE part. Please
refer to [[Query::where()]] on how to specify conditions.
@param array $params the parameters to be bound to the query.
Creates and executes a DELETE SQL statement .