# How to send purge message with node-red-node-email

**URL:** <https://discourse.nodered.org/t/how-to-send-purge-message-with-node-red-node-email/72542>\
**Category:** General\
**Created:** [21 December 2022 17:39 UTC](https://discourse.nodered.org/t/how-to-send-purge-message-with-node-red-node-email/72542 "2022-12-21T17:39:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tpbillund](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tpbillund/32/37410_2.png) [@tpbillund](https://discourse.nodered.org/u/tpbillund)\
**Post date:** [21 December 2022 17:39 UTC](https://discourse.nodered.org/t/how-to-send-purge-message-with-node-red-node-email/72542/1 "2022-12-21T17:39:56Z")

</div>

Hi

I am deleting some mail with the node-red-node-email, but the mails is still there, just hidden and with a label "Deleting/Deleted".  
If I want to delete the message from the server, I need to send a "Purge message" (imap\_expurge) how do I do that in Node Red?  
[PHP: imap\_expunge - Manual](https://www.php.net/manual/en/function.imap-expunge.php)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [19 February 2023 17:40 UTC](https://discourse.nodered.org/t/how-to-send-purge-message-with-node-red-node-email/72542/2 "2023-02-19T17:40:24Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
