Update resources and delete temp