To remove messages from your results that have been deleted, you will need to:
- Lookup the role /
nameof the folder using the API endpoint /label, look for
- Store this label_id
- Then filter out the result form API endpoint /messages with this label_id in the attribute
This way you get around all the localisations and variables of
display_name i.e. Deleted Items / Verwijder Items
This works for all providers.