This documentation is archived and is not being maintained.

ExchangeServiceBinding.DeleteFolder Method

The DeleteFolder method sends the request to and gets the response from a DeleteFolder operation.

Namespace:  ExchangeWebServices
Assembly:  EWS (in EWS.dll)

'Declaration
<SoapHeaderAttribute("MailboxCulture")> _
<SoapHeaderAttribute("ServerVersionInfoValue", Direction := SoapHeaderDirection.Out)> _
<SoapHeaderAttribute("ExchangeImpersonation")> _
<SoapDocumentMethodAttribute("http://schemas.microsoft.com/exchange/services/2006/messages/DeleteFolder", Use := SoapBindingUse.Literal,  _
	ParameterStyle := SoapParameterStyle.Bare)> _
<SoapHeaderAttribute("RequestServerVersionValue")> _
Public Function DeleteFolder ( _
	DeleteFolder1 As DeleteFolderType _
) As DeleteFolderResponseType
'Usage
Dim instance As ExchangeServiceBinding
Dim DeleteFolder1 As DeleteFolderType
Dim returnValue As DeleteFolderResponseType

returnValue = instance.DeleteFolder(DeleteFolder1)

Parameters

DeleteFolder1
Type: ExchangeWebServices.DeleteFolderType
An instance of the DeleteFolderType class that represents a set of folders to delete.

Return Value

Type: ExchangeWebServices.DeleteFolderResponseType
The DeleteFolder method returns a DeleteFolderResponseType object that contains the status of the DeleteFolder operation.
Show: