moo.sdk.objects.remove_player_record

moo.sdk.objects.remove_player_record(obj)

Delete any anonymous (user=None) Player rows pointing at obj.

Counterpart to ensure_player_record(); used by the $npc.recycle verb. Rows tied to a real User are left alone — those belong to a human player and removing them is not this helper’s job.

Parameters:

obj – the avatar Object

Returns:

number of Player rows deleted

Raises:

UserError – if the current caller is not a wizard