now deleting from the rest endpoint