Change delete function, clean cache