Help Centre › Building Processes
This article describes the RPA Outlook functionality to delete a folder.
For a full list of available functions, please read OUTLOOK functions.
Description
The OUTLOOK Delete a folder function allows you to delete a folder and all its contents from the Outlook mailbox.
Setting it up
To use the OUTLOOK Delete a folder function, follow these instructions:
{{popups:rpas/add:action=outlook-folder-delete}}
Once on a process map:
- Navigate to the process where you would like to add the OUTLOOK Delete a folder function
- Click on the green button's drop-down (right side of the green button labelled "Process")
- On the menu that appears, click on the "+ Activity" item
- From here you can select the OUTLOOK Delete a folder option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Account | Yes | Text | - | The Outlook e-mail account |
| Folder / mailbox | Yes | Text | - | The folder path to delete (e.g. Archive or Inbox::OldProject) |
Output variables
This action does not produce output variables.
Errors
| Error | Description |
|---|---|
| Outlook not open | Outlook is not running |
| Folder not found | The specified folder does not exist |
Tips
- This deletes the folder and all e-mails within it
- Use :: to target nested folders (e.g. Inbox::OldProject)