Added delete logic to example