---
title: moveToArchive
framework: mailkit
role: symbol
role_heading: Type Property
path: mailkit/memessageaction/movetoarchive
---

# moveToArchive

An object that moves the message to the account’s Archive mailbox.

## Declaration

```swift
class var moveToArchive: MEMessageAction { get }
```

## See Also

### Transferring Messages

- [moveToJunk](mailkit/memessageaction/movetojunk.md)
- [moveToTrash](mailkit/memessageaction/movetotrash.md)
