class MappingRest {

    @DELETE
    @Path("{recordId}")
    @RolesAllowed("user")
    @ApiOperation("Delete an uploaded mapping")
    @ActionId(Delete.TYPE)
    @ResourceId(type = ValueType.PATH, value = "recordId")
    public Response deleteMapping(@Context ContainerRequestContext context,
                           @PathParam("recordId") String recordId) {
        try {
            catalogManager.deleteRecord(getActiveUser(context, engineManager), vf.createIRI(recordId),
                    MappingRecord.class);
        } catch (MobiException e) {
            throw ErrorUtils.sendError(e, e.getMessage(), Response.Status.INTERNAL_SERVER_ERROR);
        } catch (IllegalArgumentException e) {
            throw ErrorUtils.sendError(e, e.getMessage(), Response.Status.BAD_REQUEST);
        }
        return Response.ok().build();
    }

}