Exchange Web Services .NET Class Library
Exchange Web Services .NET Class Library
Exchange Web Services .NET
Independentsoft.Exchange
Service Class
Service Methods
EmptyFolder Method
EmptyFolder Method (FolderId)
EmptyFolder Method (IList(FolderId))
EmptyFolder Method (StandardFolder)
EmptyFolder Method (FolderId, DeleteType)
EmptyFolder Method (FolderId, Boolean)
EmptyFolder Method (IList(FolderId), DeleteType)
EmptyFolder Method (IList(FolderId), Boolean)
EmptyFolder Method (StandardFolder, DeleteType)
EmptyFolder Method (StandardFolder, Boolean)
EmptyFolder Method (FolderId, DeleteType, Boolean)
EmptyFolder Method (IList(FolderId), DeleteType, Boolean)
EmptyFolder Method (StandardFolder, DeleteType, Boolean)

# Service EmptyFolder Method (FolderId, DeleteType, Boolean)

Empties a folder.

Namespace: Independentsoft.Exchange
Assembly: Independentsoft.Exchange (in Independentsoft.Exchange.dll) Version: 3.0.840.11238
Syntax
C#
VB
Copy

    public FolderInfoResponse EmptyFolder(
    	FolderId folderId,
    	DeleteType deleteType,
    	bool deleteSubFolders
    )

    Public Function EmptyFolder (
    	folderId As FolderId,
    	deleteType As DeleteType,
    	deleteSubFolders As Boolean
    ) As FolderInfoResponse

#### Parameters

folderId
  Type: Independentsoft.Exchange
  FolderId
  The ID of the folder to empty.
deleteType
  Type: Independentsoft.Exchange
  DeleteType
  The deletion mode.
deleteSubFolders
  Type: System
  Boolean
  If true delete the subfolders of the specified folder.

#### Return Value

Type: FolderInfoResponse
FolderInfoResponse.
See Also

#### Reference

Service Class
EmptyFolder Overload
Independentsoft.Exchange Namespace

Copyright 2025 Independentsoft

Send comments on this topic to support@independentsoft.de