Simplify the delete code now that delete returns the deleted item rather than raises not found