{\r
NS_LOG(DEBUG, "NSHandleUnsubscription - IN");\r
\r
- NSProviderDeleteSubDataFromObId(consumerSubList, entityHandlerRequest->obsInfo.obsId);\r
+ consumerSubList->cacheType = NS_PROVIDER_CACHE_SUBSCRIBER_OBSERVE_ID;\r
+\r
+ while(NSStorageDelete(consumerSubList, (unsigned char *)\r
+ &(entityHandlerRequest->obsInfo.obsId)) != NS_FAIL);\r
+ consumerSubList->cacheType = NS_PROVIDER_CACHE_SUBSCRIBER;\r
\r
NSFreeOCEntityHandlerRequest(entityHandlerRequest);\r
\r