code: public void deleteFlowConfigWithStateStore(FlowId flowId)
        throws RemoteInvocationException {
      LOG.debug("deleteFlowConfig and state store with groupName " + flowId.getFlowGroup() + " flowName " +
          flowId.getFlowName());
  
      DeleteRequest<FlowConfig> deleteRequest = _flowconfigsV2RequestBuilders.delete()
          .id(new ComplexResourceKey<>(flowId, new FlowStatusId())).setHeader(DELETE_STATE_STORE_KEY, Boolean.TRUE.toString()).build();
      ResponseFuture<EmptyRecord> response = _restClient.get().sendRequest(deleteRequest);
  
      response.getResponse();
    }
docs: Delete a flow configuration
  @param flowId identifier of flow configuration to delete
  @throws RemoteInvocationException