Deleting data items from a bag using the mqDeleteItem call
The mqDeleteItem call removes one or more user items from a bag. The index
is used to delete either:
- A single occurrence of the specified selector. (See Figure 6.)
or
- All occurrences of the specified selector. (See Figure 7.)
Note:
The index preserves the insertion order within the bag but
can affect the indices of other data items. For example, the mqDeleteItem
call does not preserve the index values of the data items that follow the
deleted item because the indices are reorganized to fill the gap that remains
from the deleted item.
For a full description of the mqDeleteItem call, see mqDeleteItem.