Also, in case you have console spam with the command, here is a better version of the function, before doing anything it checks to see if the player exists, otherwise, it moves on.
function serverCmdDelete(%admin, %target)
{
if(!%admin.isadmin) return;
%target = findclientbyname(%target);
if(isObject(%target))
%target.player.delete();
}