add delete to the rest handler