set obj to an object to be removed from the bag, and remove it

remove(&bag,&obj);