Fix delete catalog item code which only deletes the catalog item reference.

Change-Id: Ia40a31fe4815c9c5ac221713d0309f311e3d6800