Folder.Delete-Methode (Outlook)

Ein Objekt wird aus der Auflistung gelöscht.

Syntax

Ausdruck. Löschen

Ausdruck Eine Variable, die ein Folder-Objekt darstellt.

HinwBemerkungeneise

Die Delete -Methode löscht einen einzelnen Ordner.

In general, deleting a folder does not require first deleting the items in the folder. Deleting the folder also deletes all items in the folder. An exception would be if the folder is an Outlook folder that cannot be deleted, such as the Inbox and the Deleted Items folder. In such cases, you can delete only the items of the folder but not the folder itself. To delete all items in the Items collection of the folder, you must delete each item starting with the last item in the folder. Wenn z. B. in der Elementauflistung eines Ordners AllItemseine Anzahl von Elementen im Ordner vorhanden ist n , beginnen Sie mit dem Löschen des Elements bei AllItems.Item(n), und verringern Sie den Index jedes Mal, bis Sie löschen AllItems.Item(1).

Siehe auch

Folder-Objekt

Support und Feedback

Haben Sie Fragen oder Feedback zu Office VBA oder zu dieser Dokumentation? Unter Office VBA-Support und Feedback finden Sie Hilfestellung zu den Möglichkeiten, wie Sie Support erhalten und Feedback abgeben können.