IEWSClient.EmptyFolder

EmptyFolder(string)

Empties the specified folder. Subfolders will not be deleted; deleted items will be moved into DeletedItems folder

public void EmptyFolder(string folderUri)
ParameterTypeDescription
folderUriStringSpecifies the folder to be empty

Exceptions

exceptioncondition
ExchangeExceptionEmptyFolder operation failed
AsposeArgumentExceptionfolderUri is null or empty

See Also


EmptyFolder(string, EmptyFolderOptions)

Empties the specified folder

public void EmptyFolder(string folderUri, EmptyFolderOptions options)
ParameterTypeDescription
folderUriStringSpecifies the folder to be empty
optionsEmptyFolderOptionsSpecifies the options of clearing folder

Exceptions

exceptioncondition
ExchangeExceptionEmptyFolder operation failed
AsposeArgumentExceptionfolderUri is null or empty

See Also