Delete items before deleting a list