DeleteFromMailbox Method
Marks the messages specified by MessageSet as deleted.
Syntax
async pimap.deleteFromMailbox(): Promise<void>
Remarks
This method marks the messages specified by MessageSet as deleted. Calling this method is equivalent to calling AddMessageFlags with "\Deleted" as the Flags parameter.