ok, try this, untested
execute it with [thislist] exec "deletebodies.sqs" in the on activation of your trigger ACTIVATED,ONCE by the side you want.
;deletebodies.sqs
; only men will be deleted!
_list = _this select 0
_i = 0
#loop
_body = _list select _i
?"man" countype [_body] > 0 && !alive _body : deletevehicle _body
_i = _i + 1
?_i < count _list : goto "loop"
exit