remove core data object after created