default retention period is 1 day. It depends on your daily volume , in my prod env we are keeping messages for 14 days,
You can modify the settings under
Service XPI Adapter: XI:
- xiadapter.inbound.persistDuration.default
- xiadapter.outbound.persistDuration.default