So I am making an outlook add-in where I the program reads emails attachments and saves them in the windows:(c) directory. But i want the program to delete email attachments from the directory after program finish's reading the attachments.
Code:
string path = @"C:\\att\\" + attachment.FileName;
attachment.SaveAsFIle(Path);