跳到主要内容

如何在Outlook中批量删除多个文件夹/子文件夹?

作者:凯莉 最后修改时间:2020-05-29

如您所知,您可以在Outlook中一次在“导航”窗格上选择和删除一个文件夹,并且似乎无法批量选择多个文件夹。 但是,从导航窗格中一个接一个地删除多个文件夹将太繁琐。 本文将介绍一种解决方案,可以从Outlook快速批量删除多个文件夹。


使用VBA删除指定文件夹的所有子文件夹 在Outlook中

此方法将引入VBA来批量删除Outlook中某个文件夹的所有子文件夹。 请执行以下操作:

1。 在邮件视图中,选择要删除其所有子文件夹的指定文件夹。

2。 按 其他 + F11 键一起打开Microsoft Visual Basic for Applications窗口。

3。 单击插入>模块,然后将以下VBA代码粘贴到新的模块窗口中。

Sub Delete_All_SubFolders()
Dim oCurrFolder As Folder
Dim oSubFolders As Folders
Dim i As Long

On Error Resume Next

Set oCurrFolder = Outlook.Application.ActiveExplorer.CurrentFolder
Set oSubFolders = oCurrFolder.Folders

For i = oSubFolders.Count To 1 Step -1
oSubFolders.item(i).Delete
Next
End Sub

4。 按 F5 运行此VBA的关键。 现在,您将看到尽快将所选文件夹下的所有子文件夹全部删除。 看截图:

在Outlook中快速搜索和删除重复的电子邮件

使用Kutools for Outlook的 邮件重复 功能,您可以在多个邮件文件夹中快速找到并删除它们,或者在Outlook中单击两次即可从所选邮件文件夹中找到并删除所有重复项。


在Outlook中批量删除多个文件夹

请按照以下步骤从Microsoft Outlook中批量删除多个文件夹。

1。 右键单击要批量删除其文件夹的电子邮件帐户,选择 新建文件夹 从上下文菜单中,然后将新文件夹命名为 温度。 参见下面的截图:

2。 现在将要删除的文件夹之一拖到新文件夹中 温度 文件夹,将其放到新文件夹中 温度 文件夹突出显示。 看截图:

3。 现在将弹出一个Microsoft Outlook对话框,询问您有关移动所选文件夹的确认。 请点击 Premium Partner 按钮。 参见上面的截图。

4。 重复上述步骤2-3,直到将要删除的所有文件夹都移至新文件夹 温度 文件夹中。

5。 右键单击新 温度 文件夹,然后选择 删除文件夹 从上下文菜单中。 参见下面的截图:

6。 在警告Microsoft Outlook对话框中,请单击 Premium Partner 按钮。 参见上面的截图。

到目前为止,您需要删除的所有文件夹已被批量删除。


相关文章


最佳办公生产力工具

最新消息:Kutools for Outlook 发布 免费版本!

体验全新的 Kutools for Outlook 免费版本拥有 70 多项令人难以置信的功能,您可以永久使用! 点击立即下载!

🤖 Kutools人工智能 : 具有人工智能魔力的即时专业电子邮件——一键天才回复、完美语气、多语言掌握。轻松改变电子邮件! ...

📧 电子邮件自动化: 自动回复(适用于 POP 和 IMAP)  /  安排发送电子邮件  /  发送电子邮件时按规则自动抄送/密件抄送  /  自动转发(高级规则)   /  自动添加问候语   /  自动将多收件人电子邮件拆分为单独的消息 ...

📨 电子邮件管理: 撤回电子邮件  /  按主题和其他人阻止诈骗电子邮件  /  删除重复的电子邮件  /  高级搜索  /  合并文件夹 ...

📁 附件专业版批量保存  /  批量分离  /  批量压缩  /  自动保存   /  自动分离  /  自动压缩 ...

🌟 界面魔法: 😊更多又漂亮又酷的表情符号   /  收到重要邮件时提醒您  /  最小化 Outlook 而不是关闭 ...

👍 一键奇迹: 使用传入附件回复全部  /   反网络钓鱼电子邮件  /  🕘显示发件人的时区 ...

👩🏼‍🤝‍👩🏻 通讯录和日历: 从选定的电子邮件中批量添加联系人  /  将联系人组拆分为各个组  /  删除生日提醒 ...

只需单击一下即可立即解锁 Kutools for Outlook -永久免费. 别等了, 立即下载并提高您的效率!

kutools for outlook 功能1 kutools for outlook 功能2
 

 

 

Comments (9)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
One thing I didn't add from above is that my active Inbox (the one that actually harvests the new mail messages )now in Outlook is the Inbox that is in my set of GMail folders. Yes, I now have 2 Inboxes, along with the other duplicates. If I were to delete that whole set of folders that includes my GMail inbox, I wouldn't see any new emails coming into Outlook. Therefore, I'm leaving things as they are, at least for now.
This comment was minimized by the moderator on the site
yes, that's correct. I'm seeing a duplicate set of folders now(below the original set) in Outlook that are my GMail folders. They weren't there before I installed this new Office version. I was using Outlook 2016 desktop client ver. previously. Now, for instance, if I delete an email in Outlook, I see a small "synchronizing trash" window at the bottom of Outlook where it indicates that it's duplicating that deletion in GMail. I didn't have this before. As stated above, I can live with it, but it's just a bit different now.
This comment was minimized by the moderator on the site
I recently downloaded the new Office Pro 2021 for Windows which includes Outlook. I was using the 2016 version until now. The new installation went fine, but now I seem to have all of my Gmail folders appearing in Outlook also; they're below the original folders that I had before the conversion to the new Office. Any new emails that I get now come into the "Gmail" inbox instead of my original Inbox, which is still there. If I delete the Gmail folder and its subfolders I don't think my new emails will appear. I thought it might have been because IMAP was enabled in my Gmail settings. I disabled IMAP (to use only POP3), but the new emails still come into that Gmail inbox. Is there a way to fix this? If not, I can live with it....at least Outlook is harvesting the mail from my Gmail account. Thanks in advance.
This comment was minimized by the moderator on the site
Hi there, did you mean that you log in the same gmail account both in Outlook and Gmail?
Amanda
This comment was minimized by the moderator on the site
Thank you! This works!
This comment was minimized by the moderator on the site
This adds a step to an already arduous job. Is this a joke?
This comment was minimized by the moderator on the site
The VBA method to delete all subfolders works, thank you.
This comment was minimized by the moderator on the site
This is nonsense. I somehow have approx 300 trash subfolders, 300 note subfolders etc. Why can't I shift scroll to delete all?
This comment was minimized by the moderator on the site
This is a terrible solution! You still have to handle each folder individually! If you have hundreds of folders to delete, how is this any better than going one-by-one and deleting them? Using this "system", you have to go one-by-one and add them to a folder, then delete THAT folder. No better!
There are no comments posted here yet
Leave your comments
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations