src/Administration.php
public function deleteUserByUsername($username) {
		$userData = $this->getUserDataByUsername(
			\trim($username),
			[ 'id' ]
		);

		$this->deleteUsersByColumnValue('id', (int) $userData['id']);
	}
public function deleteUserByUsername($username) {
		$userData = $this->getUserDataByUsername(
			\trim($username),
			[ 'id' ]
		);

		$this->deleteUsersByColumnValue('id', (int) $userData['id']);
	}
public function deleteUserByUsername ( $ username ) { $ userData = $ this -> getUserDataByUsername ( \ trim ( $ username ) , [ 'id' ] ) ; $ this -> deleteUsersByColumnValue ( 'id' , ( int ) $ userData [ 'id' ] ) ; }
Deletes the user with the specified username

This action cannot be undone

@param string $username the username of the user to delete
@throws UnknownUsernameException if no user with the specified username has been found
@throws AmbiguousUsernameException if multiple users with the specified username have been found
@throws AuthError if an internal problem occurred (do *not* catch)
Deletes the user with the specified username