class ModuleResource extends AbstractResource {

    @DELETE
    @Path("/{name}/{version}")
    public Response delete(@Auth final DbCredential credential, @PathParam("name") final String name, @PathParam("version") final String version) {
        if (!credential.getRoles().contains(AvailableRoles.DATA_DELETER)) {
            throw new WebApplicationException(Response.status(Response.Status.UNAUTHORIZED).build());
        }
        if (LOG.isInfoEnabled()) {
            LOG.info(String.format("Got a delete module request [%s %s]", name, version));
        }

        final String moduleId = DbModule.generateID(name, version);
        getModuleHandler().deleteModule(moduleId);

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

    public  ModuleResource(final RepositoryHandler repoHandler, final GrapesServerConfig dmConfig);

}