class ProductResource extends AbstractResource {

    @DELETE
    @Path("/{name}")
    public Response delete(@Auth final DbCredential credential, @PathParam("name") final String name){
        if(!credential.getRoles().contains(DbCredential.AvailableRoles.DATA_DELETER)){
            throw new WebApplicationException(Response.status(Response.Status.UNAUTHORIZED).build());
        }

        LOG.info("Got a delete organization request.");
        getProductHandler().deleteProduct(name);

        return Response.ok("done").build();
    }

    public  ProductResource(final RepositoryHandler repositoryHandler, final GrapesServerConfig configuration);

}