I'm unable to get the contact items that have been deleted since a particular timestamp. ContactsChangedSinceL function of CContactDatabase gives the addition and updates but it doesn't return the deleted items.

My code is:

CContactItem* contact;
CContactDatabase *database; // Contact database
database = CContactDatabase::OpenL();

CContactIdArray* cArray = database->ContactsChangedSinceL(lastTime);
CContactIdArray& cArr = *cArray;

for (int i = 0; i < cArray->Count(); i++) {

contact = database->OpenContactLX(cArr[i]);

if (contact->IsDeleted())
Print(_L("IS DELETED!!!"));


CleanupStack::Pop(); // contact

The clause contact->IsDeleted() never seems to return true even though I delete some contacts on the phone.

I also tried CContactDatabase:eletedContactsLC() but it always returns an array of length zero.

Could someone please tell me how to get the deleted items.