remove stale resource data before updating with new data