hi all.
So my problem, I can`t delete mail attachment.
here some code......

if(pDIGWAttachments && SUCCEEDED(pDIGWAttachments->QueryInterface(IID_IGWAttachments, (void**)&pIGWAttachments))) {
pDIGWAttachments->Release();
pIGWAttachments->get_Count(&count);
for (int j= 1; j <= count; j++ ){
V_I4(&vTmpAtt) = j;
pIGWAttachments->Item(vTmpAtt, &pDIGWAttachment);
if (pDIGWAttachment) {
pDIGWAttachment->QueryInterface(IID_IGWAttachment, (LPVOID *)&pIGWAttachment);
pDIGWAttachment.Release();
if (pIGWAttachment) {
pIGWAttachment->get_ObjType(&pAttachmentTypeConstants);
if(pAttachmentTypeConstants != egwMessage){
pIGWAttachment->get_FileName(&bstrFile);

el.sFileName.SetString(createFileName(path, sFileName));
bsfileName= ::SysAllocString(el.sFileName);
if (pIGWAttachment->Save(bsfileName) == S_OK) //save ok
pIGWAttachment->Delete();
::SysFreeString(bsfileName);

//.....etc

all worcks fine but "pIGWAttachment->Delete();" does not delete attachment. What I am doing wrong? Any suggestions.
Thank you.!