code: public static Response deleteLinksHandler(ParaObject pobj, String id2, String type2, boolean childrenOnly) {
  		try (final Metrics.Context context = Metrics.time(null, RestUtils.class, "links", "delete")) {
  			if (type2 == null && id2 == null) {
  				pobj.unlinkAll();
  			} else if (type2 != null) {
  				if (id2 != null) {
  					pobj.unlink(type2, id2);
  				} else if (childrenOnly) {
  					pobj.deleteChildren(type2);
  				}
  			}
  			return Response.ok().build();
  		}
  	}
docs: Handles requests to delete linked objects.
  @param pobj the object to operate on
  @param id2 the id of the second object (optional)
  @param type2 the type of the second object
  @param childrenOnly find only directly linked objects in 1-to-many relationship
  @return a Response