# MBS Plugin delete email message

**URL:** <https://the.fmsoup.org/t/mbs-plugin-delete-email-message/2627>\
**Category:** MBS Plugins\
**Tags:** plugin, macos, mbs\
**Created:** [December 6, 2021, 8:13pm UTC](https://the.fmsoup.org/t/mbs-plugin-delete-email-message/2627 "2021-12-06T20:13:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sparky](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/sparky/32/1802_2.png) [@Sparky](https://the.fmsoup.org/u/Sparky)\
**Post date:** [December 6, 2021, 8:13pm UTC](https://the.fmsoup.org/t/mbs-plugin-delete-email-message/2627/1 "2021-12-06T20:13:12Z")

</div>

I have integrated the MBS plugin into a solution and am using it to fetch emails from an IMAP account. How do I tell the plugin to delete the messages that I have just collected (or maybe delete all messages in the inbox)?

---

<div class="post-metadata">

**Author:** ![Torsten](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/torsten/32/1574_2.png) [@Torsten](https://the.fmsoup.org/u/Torsten)\
**Post date:** [December 6, 2021, 8:39pm UTC](https://the.fmsoup.org/t/mbs-plugin-delete-email-message/2627/2 "2021-12-06T20:39:45Z")

</div>

Hi @Sparky, welcome to the soup!

MBS has a sample file [IMAP Email.fmp12](https://www.monkeybread.eu/MBS-FileMaker-Plugin-Examples/CURL/Email/IMAP%20Email.shtml#10ScriptAnchor_). There is a script named ‘Delete Email’.
