code: func newDeleteMemberHandler(s platform.UserResourceMappingService, userType platform.UserType) http.HandlerFunc {
  	return func(w http.ResponseWriter, r *http.Request) {
  		ctx := r.Context()
  
  		req, err := decodeDeleteMemberRequest(ctx, r)
  		if err != nil {
  			EncodeError(ctx, err, w)
  			return
  		}
  
  		if err := s.DeleteUserResourceMapping(ctx, req.ResourceID, req.MemberID); err != nil {
  			EncodeError(ctx, err, w)
  			return
  		}
  
  		w.WriteHeader(http.StatusNoContent)
  	}
  }
docs: // newDeleteMemberHandler returns a handler func for a DELETE to /members or /owners endpoints