Fixed delete to return the correct data