Deleting needless resources.