public CompletionStage < ResponseBuilder > deleteResource ( final ResponseBuilder builder ) { LOGGER . debug ( "Deleting {}" , getIdentifier ( ) ) ; final TrellisDataset mutable = TrellisDataset . createDataset ( ) ; final TrellisDataset immutable = TrellisDataset . createDataset ( ) ; return handleDeletion ( mutable , immutable ) . thenApply ( future -> builder ) . whenComplete ( ( a , b ) -> immutable . close ( ) ) . whenComplete ( ( a , b ) -> mutable . close ( ) ) ; }
Delete the resource in the persistence layer .