moo.sdk.ssh_keys.remove_ssh_key

moo.sdk.ssh_keys.remove_ssh_key(player_obj, index)

Remove the SSH key at the given 1-based index for the player.

The index corresponds to the position in the list returned by list_ssh_keys().

Parameters:
  • player_obj (Object) – the player Object whose SSH key to remove

  • index (int) – 1-based position of the key to remove

Raises:

UserError – if the caller is not wizard-owned, the index is out of range, or the player has no account