Fixed delete cache method