ImapClient.DeleteFolderAsync

DeleteFolderAsync(IConnection, string)

Deletes a specified folder. This method represents IMAP DELETE command

public Task DeleteFolderAsync(IConnection connection, string folderName)
ParameterTypeDescription
connectionIConnectionConnection to a server
folderNameStringFolder to be deleted

Return Value

Task object, with delegate for this operation

See Also


DeleteFolderAsync(string)

Deletes a specified folder. This method represents IMAP DELETE command

public Task DeleteFolderAsync(string folderName)
ParameterTypeDescription
folderNameStringFolder to be deleted

Return Value

Task object, with delegate for this operation

See Also


DeleteFolderAsync(IConnection, string, CancellationToken)

Deletes a specified folder. This method represents IMAP DELETE command

public Task DeleteFolderAsync(IConnection connection, string folderName, CancellationToken token)
ParameterTypeDescription
connectionIConnectionConnection to a server
folderNameStringFolder to be deleted
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


DeleteFolderAsync(string, CancellationToken)

Deletes a specified folder. This method represents IMAP DELETE command

public Task DeleteFolderAsync(string folderName, CancellationToken token)
ParameterTypeDescription
folderNameStringFolder to be deleted
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also