API:KickGroupMember

KickGroupMember(name)

set UnitId arguments for (unitid)
These are the various unit identifiers that are used by functions requiring a UnitId argument.
 * {| border="1"

! UnitId ! Description ! Format ! Example ! "player" ! "pet" ! "target" ! "mouseover" ! "focus" ! "party" ! "raid"
 * current player
 * current pet of player
 * current target
 * current item under mouse cursor
 * current focus
 *  = 1 to 12
 * "focus12"
 * current party member
 *  = 1 to 5
 * "party3"
 * current raid member
 *  = 1 to 36
 * "raid22"
 * }

Combined Unit ID
It is valid to combine unit identifiers to reference an other type of unit. Add target after any of the above to find their target. E.g. "playertargettargettarget" returns the Target of the Target of the Target that the Player is targeting. (please add more if you know them):
 * {| border="1"

! Combined UnitId ! Description ! Format ! Example ! "target" ! "pet"
 * current  target
 *  = UnitId
 * "party3target"
 * current  pet
 *  = UnitId
 * "focus8pet"
 * }

tested macro examples
/run KickGroupMember("player")

--> you leave the group

/run KickGroupMember("party1")

--> kicks the 1st player if you are leader

/run KickGroupMember("target")

--> your current target leaves the group

references: http://www.theromwiki.com/UnitId