added code to remove records from the local cache