Delete unnessesary resources.