public function delete($table, $condition = '', $params = [])
    {
        $cmdPromise = $this->createCommand()->delete($table, $condition, $params)->execute();
        return $this->execPromise($cmdPromise, "delete from $table");
    }
public function delete($table, $condition = '', $params = [])
    {
        $cmdPromise = $this->createCommand()->delete($table, $condition, $params)->execute();
        return $this->execPromise($cmdPromise, "delete from $table");
    }
public function delete ( $ table , $ condition = '' , $ params = [ ] ) { $ cmdPromise = $ this -> createCommand ( ) -> delete ( $ table , $ condition , $ params ) -> execute ( ) ; return $ this -> execPromise ( $ cmdPromise , "delete from $table" ) ; }
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.
@return LazyPromiseInterface
Creates and executes a DELETE SQL statement .