@ DELETE public Response deleteResource ( @ PathParam ( JaxRxConstants . SYSTEM ) final String system , @ PathParam ( JaxRxConstants . RESOURCE ) final String resource , @ Context final HttpHeaders headers ) { final JaxRx impl = Systems . getInstance ( system ) ; final String info = impl . delete ( new ResourcePath ( resource , headers ) ) ; return Response . ok ( ) . entity ( info ) . build ( ) ; }
This method will be called when an HTTP client sends a DELETE request to delete an existing resource .