Delete all unflagged emails in Apple Mail
How does one delete all emails except those that are flagged, please? I have multiple email addresses from different servers forwarded to Apple Mail. Within the "all emails" section, I would like to keep just those that are flagged and delete the rest. There are thousands upon thousands of unflagged emails. Thank you.
iPad Pro, iPadOS 18