Removing not needed resources.