remove metadata items from the objectsData table when deleting.