src/Administration.php
private function deleteUsersByColumnValue($columnName, $columnValue) {
		try {
			return $this->db->delete(
				$this->makeTableNameComponents('users'),
				[
					$columnName => $columnValue
				]
			);
		}
		catch (Error $e) {
			throw new DatabaseError($e->getMessage());
		}
	}
private function deleteUsersByColumnValue($columnName, $columnValue) {
		try {
			return $this->db->delete(
				$this->makeTableNameComponents('users'),
				[
					$columnName => $columnValue
				]
			);
		}
		catch (Error $e) {
			throw new DatabaseError($e->getMessage());
		}
	}
private function deleteUsersByColumnValue ( $ columnName , $ columnValue ) { try { return $ this -> db -> delete ( $ this -> makeTableNameComponents ( 'users' ) , [ $ columnName => $ columnValue ] ) ; } catch ( Error $ e ) { throw new DatabaseError ( $ e -> getMessage ( ) ) ; } }
Deletes all existing users where the column with the specified name has the given value

You must never pass untrusted input to the parameter that takes the column name

@param string $columnName the name of the column to filter by
@param mixed $columnValue the value to look for in the selected column
@return int the number of deleted users
@throws AuthError if an internal problem occurred (do *not* catch)
Deletes all existing users where the column with the specified name has the given value