Add function to delete an item