remove Resource object