class DefaultOfferResource extends ApplicationStatusResource {

    @DELETE
    @Path("/objects/{type}/{id:.+}")
    @Produces(MediaType.APPLICATION_JSON)
    public Response deleteObject(@HeaderParam(GlobalDataRest.X_TENANT_ID) String xTenantId,
        @HeaderParam(GlobalDataRest.X_DIGEST_ALGORITHM) String xDigestAlgorithm, @PathParam("type") DataCategory
        type,
        @PathParam("id") String idObject) {
        if (Strings.isNullOrEmpty(xTenantId)) {
            LOGGER.error(MISSING_THE_TENANT_ID_X_TENANT_ID);
            return Response.status(Response.Status.BAD_REQUEST).build();
        }

        try {
            SanityChecker.checkParameter(idObject);
            VitamThreadUtils.getVitamSession()
                .setRequestId(GUIDFactory.newRequestIdGUID(Integer.parseInt(xTenantId)));
            final String containerName = buildContainerName(type, xTenantId);
            defaultOfferService.deleteObject(containerName, idObject, type);
            return Response.status(Response.Status.OK)
                .entity("{\"id\":\"" + idObject + "\",\"status\":\"" + Response.Status.OK.toString() + "\"}")
                .build();
        } catch (ContentAddressableStorageNotFoundException e) {
            LOGGER.info(e);
            return Response.status(Response.Status.NOT_FOUND).build();
        } catch (ContentAddressableStorageException | InvalidParseOperationException e) {
            LOGGER.error(e);
            return Response.status(Status.INTERNAL_SERVER_ERROR).build();
        }

    }

    public  DefaultOfferResource(DefaultOfferService defaultOfferService);

}