code: @DELETE
      @Path("/{variantId}")
      public Response deleteVariant(@PathParam("variantId") String variantId) {
  
          Variant variant = variantService.findByVariantID(variantId);
  
          if (variant == null) {
              return Response.status(Response.Status.NOT_FOUND).entity("Could not find requested Variant").build();
          }
  
          if (!type.isInstance(variant)) {
              return Response.status(Response.Status.BAD_REQUEST).entity("Requested Variant is of another type/platform").build();
          }
  
          logger.trace("Deleting: {}", variant.getClass().getSimpleName());
  
          variantService.removeVariant(variant);
          return Response.noContent().build();
      }
docs: Delete Variant
  
  @param variantId id of {@link Variant}
  
  @return no content or 404
  
  @statuscode 204 The Variant successfully deleted
  @statuscode 400 The requested Variant resource exists but it is not of the given type
  @statuscode 404 The requested Variant resource does not exist