delete_item function implemented.