src/Codeception/Module/WPDb.php
public function dontHaveInDatabase($table, array $criteria)
    {
        try {
            $this->_getDriver()->deleteQueryByCriteria($table, $criteria);
        } catch (\Exception $e) {
            $this->debug("Couldn't delete record(s) from {$table} with criteria " . json_encode($criteria));
        }
    }
public function dontHaveInDatabase($table, array $criteria)
    {
        try {
            $this->_getDriver()->deleteQueryByCriteria($table, $criteria);
        } catch (\Exception $e) {
            $this->debug("Couldn't delete record(s) from {$table} with criteria " . json_encode($criteria));
        }
    }
public function dontHaveInDatabase ( $ table , array $ criteria ) { try { $ this -> _getDriver ( ) -> deleteQueryByCriteria ( $ table , $ criteria ) ; } catch ( \ Exception $ e ) { $ this -> debug ( "Couldn't delete record(s) from {$table} with criteria " . json_encode ( $ criteria ) ) ; } }
Deletes a database entry.

@example
```php
$I->dontHaveInDatabase('custom_table', ['book_ID' => 23, 'book_genre' => 'fiction']);
```

@param  string $table    The table name.
@param  array  $criteria An associative array of the column names and values to use as deletion criteria.
Deletes a database entry .