src/users.php
public static function removeByUsername(string $username) {
		$userdbname = setup::getValidation("username");
		if ($user = R::findOne('user', ' ' . $userdbname . ' = ? ', [$username])) {
			R::trash($user);
		}
	}
public static function removeByUsername(string $username) {
		$userdbname = setup::getValidation("username");
		if ($user = R::findOne('user', ' ' . $userdbname . ' = ? ', [$username])) {
			R::trash($user);
		}
	}
public static function removeByUsername ( string $ username ) { $ userdbname = setup :: getValidation ( "username" ) ; if ( $ user = R :: findOne ( 'user' , ' ' . $ userdbname . ' = ? ' , [ $ username ] ) ) { R :: trash ( $ user ) ; } }
Removes an user by his name

@param string $username Username
Removes an user by his name