NB! It seems this console command is not compatible with CS2.
Command Profile

REMOVEID

CS:GO

This command removes the specified user ID from your server's ban list.

Syntax
removeid [Steam ID]

Description

This command removes the specified user ID from your server's ban list.

How To Use removeid

  1. Enable the developer console in Counter-Strike settings.
  2. Open the console with the tilde key (~).
  3. Enter removeid [Steam ID], replacing bracketed arguments with the value you want, then press Enter.

This legacy command is not currently listed as compatible with Counter-Strike 2.

Syntax And Arguments

removeid [Steam ID]
Steam ID The steam ID of the user you wish to unban.