fixed 'deleteItem' method to match the requested item type.