core/src/main/java/net/typedrest/AbstractETagEndpoint.java
protected HttpResponse deleteContent()
            throws IOException, IllegalArgumentException, IllegalAccessException, FileNotFoundException, IllegalStateException {
        Request request = Request.Delete(uri);
        if (last != null) {
            request.addHeader(HttpHeaders.IF_MATCH, last.etag);
        }

        return executeAndHandle(request);
    }
protected HttpResponse deleteContent()
            throws IOException, IllegalArgumentException, IllegalAccessException, FileNotFoundException, IllegalStateException {
        Request request = Request.Delete(uri);
        if (last != null) {
            request.addHeader(HttpHeaders.IF_MATCH, last.etag);
        }

        return executeAndHandle(request);
    }
protected HttpResponse deleteContent ( ) throws IOException , IllegalArgumentException , IllegalAccessException , FileNotFoundException , IllegalStateException { Request request = Request . Delete ( uri ) ; if ( last != null ) { request . addHeader ( HttpHeaders . IF_MATCH , last . etag ) ; } return executeAndHandle ( request ) ; }
Performs an HTTP DELETE request on the {@link Endpoint#getUri()}. Sets
{@link HttpHeaders#IF_MATCH} if there is a cached ETag to detect lost
updates.

@return The response message.
@throws IOException Network communication failed.
@throws IllegalArgumentException {@link HttpStatus#SC_BAD_REQUEST}
@throws IllegalAccessException {@link HttpStatus#SC_UNAUTHORIZED} or
{@link HttpStatus#SC_FORBIDDEN}
@throws FileNotFoundException {@link HttpStatus#SC_NOT_FOUND} or
{@link HttpStatus#SC_GONE}
@throws IllegalStateException The entity has changed since it was last
retrieved with {@link #getContent()}. Your delete call was rejected to
prevent a lost update.
@throws RuntimeException Other non-success status code.
Performs an HTTP DELETE request on the { @link Endpoint#getUri () } . Sets { @link HttpHeaders#IF_MATCH } if there is a cached ETag to detect lost updates .