deleteEntryForEntryId:withError: method

Marks an entry from cache for deletion.

Syntax

- ( BOOL ) deleteEntryForEntryId : ( NSString * ) entryId withError : ( NSError ** ) error

Parameters

Returns

Boolean to indicate the outcome of the operation.
 id<Caching> cacheLocal = [[Cache alloc] init];
 NSError* error = nil;
 NSString* deletedEntryId = [deletedEntry getEntryID[;
 if ([cacheLocal deleteEntryForEntryId:deletedEntryId withError:&error]) {
     NSLog("Delete Entry Error : %@", error);
     return;
 }