Thanks all! I shall check the answers in a second... just to clarify the requirement....
------------------------------------------------------------
--I understand your requirement as follows.
--You wanted to delete all records having the "memberofgroup" field's value...