The CLOSE command closes the current folder and deletes flagged messages from the IMAP mail server.
Command
Keyword
Value
Developer notes
CLOSE