delete cache functon