Clearing a bag using the mqClearBag call
The mqClearBag call removes all user items from a user bag and resets system items to their initial values. System bags contained within the bag are also deleted.
For a full description of the mqClearBag call, see mqClearBag.