delete cache function