vaadin/src/main/java/net/typedrest/vaadin/views/ElementView.java
protected void onDelete()
            throws IOException, IllegalArgumentException, IllegalAccessException, FileNotFoundException, IllegalStateException {
        endpoint.delete();
        eventBus.post(new ElementDeletedEvent<>(endpoint));
    }
protected void onDelete()
            throws IOException, IllegalArgumentException, IllegalAccessException, FileNotFoundException, IllegalStateException {
        endpoint.delete();
        eventBus.post(new ElementDeletedEvent<>(endpoint));
    }
protected void onDelete ( ) throws IOException , IllegalArgumentException , IllegalAccessException , FileNotFoundException , IllegalStateException { endpoint . delete ( ) ; eventBus . post ( new ElementDeletedEvent <> ( endpoint ) ) ; }
Handler for deleting the element.

@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 {@link HttpStatus#SC_CONFLICT}
@throws RuntimeException Other non-success status code.
Handler for deleting the element .