delete() public method
Creates a DELETE command. For example, $connection->createCommand()->delete('user', 'status = 0')->execute();
The method will properly escape the table and column names. Note that the created command is not executed until execute() is called.
public $this delete ( $table, $condition = '', $params = [] )$table string
The table where the data will be deleted from. $condition
string|array
The condition that will be put in the WHERE part. Please refer to