add delete method to cookie class