<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def groups_delete(self, room_id=None, group=None, **kwargs):
 """Delete a private group."""

        if room_id:
            return self.__call_api_post('groups.delete', roomId=room_id, kwargs=kwargs)
        elif group:
            return self.__call_api_post('groups.delete', roomName=group, kwargs=kwargs)
        else:
            raise RocketMissingParamException('roomId or group required')