/** * Delete a configured flow. Running flows are not affected. The schedule will be removed for scheduled flows. * * @return * builder for the resource method */ public FlowconfigsDeleteRequestBuilder delete() { return new FlowconfigsDeleteRequestBuilder(getBaseUriTemplate(), _resourceSpec, getRequestOptions()); }
/** * Delete a flow configuration * @param flowId identifier of flow configuration to delete * @throws RemoteInvocationException */ public void deleteFlowConfig(FlowId flowId) throws RemoteInvocationException { LOG.debug("deleteFlowConfig with groupName " + flowId.getFlowGroup() + " flowName " + flowId.getFlowName()); DeleteRequest<FlowConfig> deleteRequest = _flowconfigsRequestBuilders.delete() .id(new ComplexResourceKey<>(flowId, new EmptyRecord())).build(); ResponseFuture<EmptyRecord> response = _restClient.get().sendRequest(deleteRequest); response.getResponse(); }