deleted core data cache before it is used