modify the delete method for mapping cache