improve DELETE rest endpoint