<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Not able to delete the NiFi existing flow using nifi-api in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Not-able-to-delete-the-NiFi-existing-flow-using-nifi-api/m-p/403950#M252245</link>
    <description>&lt;P&gt;Hi All,&lt;BR /&gt;I am trying to delete my nifi existing process group through nifi-api curl but unfortunately it gives me error that "The revision must be specified" but everything specified as per the documentation but still not working, below is the curl command what I used for delete the process group(flow) to my target system and also I can able to delete the same through UI but not works with rest api.&lt;BR /&gt;&lt;BR /&gt;curl -k -X DELETE "&lt;A href="https://localhost:28443/nifi-api/process-groups/704acbdf-0195-1000-d3d3-6a977a6c7d6e" target="_blank" rel="noopener"&gt;https://localhost:28443/nifi-api/process-groups/836e216e-0195-1000-d3b8-771b257f1fe6&lt;/A&gt;" \&lt;BR /&gt;-H "Content-Type: application/json" \&lt;BR /&gt;-H "Authorization: Bearer&amp;nbsp; Token" \&lt;BR /&gt;--data '{&lt;BR /&gt;"revision": {&lt;BR /&gt;"version": 0&lt;BR /&gt;},&lt;BR /&gt;"disconnectedNodeAcknowledged": false&lt;BR /&gt;}'&lt;BR /&gt;&lt;BR /&gt;ERROR: 400 - The revision must be specified.&lt;BR /&gt;&lt;BR /&gt;Also find the below is the output of the process_groups:&lt;BR /&gt;{'permissions': {'canRead': True, 'canWrite': True}, 'processGroupFlow': {'id': '187acb23-0195-1000-1908-1543c761f376', 'uri': '&lt;A href="https://localhost:28443/nifi-api/flow/process-groups/187acb23-0195-1000-1908-1543c761f376" target="_blank" rel="noopener"&gt;https://localhost:28443/nifi-api/flow/process-groups/187acb23-0195-1000-1908-1543c761f376&lt;/A&gt;', 'parameterContext': {'id': 'f24131aa-0fad-3876-f76a-591e810f66da', 'permissions': {'canRead': True, 'canWrite': True}, 'component': {'id': 'f24131aa-0fad-3876-f76a-591e810f66da', 'name': 'NiFi_Engine_Parameters'}}, 'breadcrumb': {'id': '187acb23-0195-1000-1908-1543c761f376', 'permissions': {'canRead': True, 'canWrite': True}, 'breadcrumb': {'id': '187acb23-0195-1000-1908-1543c761f376', 'name': 'NiFi Flow'}}, 'flow': {'processGroups': [{'revision': {'version': 0}, 'id': '836e216e-0195-1000-d3b8-771b257f1fe6', 'uri': '&lt;A href="https://localhost:28443/nifi-api/process-groups/836e216e-0195-1000-d3b8-771b257f1fe6" target="_blank" rel="noopener"&gt;https://localhost:28443/nifi-api/process-groups/836e216e-0195-1000-d3b8-771b257f1fe6&lt;/A&gt;', 'position': {'x': 392.0, 'y': 240.0}, 'permissions': {'canRead': True, 'canWrite': True}, 'bulletins': [], 'component': {'id': '836e216e-0195-1000-d3b8-771b257f1fe6', 'versionedComponentId': '3bcf353e-04bc-39e1-85fd-879f7318bb8a', 'parentGroupId': '187acb23-0195-1000-1908-1543c761f376', 'position': {'x': 392.0, 'y': 240.0}, 'name': 'NIFI_HL7_INTEGRATION_ENGINE_PG_ES_100325_latest', 'comments': '', 'parameterContext': {'id': 'f24131aa-0fad-3876-f76a-591e810f66da', 'permissions': {'canRead': True, 'canWrite': True}, 'component': {'id': 'f24131aa-0fad-3876-f76a-591e810f66da', 'name': 'NiFi_Engine_Parameters'}}, 'flowfileConcurrency': 'UNBOUNDED', 'flowfileOutboundPolicy': 'STREAM_WHEN_AVAILABLE', 'defaultFlowFileExpiration': '0 sec', 'defaultBackPressureObjectThreshold': 10000, 'defaultBackPressureDataSizeThreshold': '1 GB', 'executionEngine': 'INHERITED', 'maxConcurrentTasks': 1, 'statelessFlowTimeout': '1 min', 'runningCount': 0, 'stoppedCount': 542, 'invalidCount': 6, 'disabledCount': 0, 'activeRemotePortCount': 0, 'inactiveRemotePortCount': 0, 'upToDateCount': 0, 'locallyModifiedCount': 0, 'staleCount': 0, 'locallyModifiedAndStaleCount': 0, 'syncFailureCount': 0, 'localInputPortCount': 0, 'localOutputPortCount': 0, 'publicInputPortCount': 0, 'publicOutputPortCount': 0, 'statelessGroupScheduledState': 'STOPPED', 'inputPortCount': 0, 'outputPortCount': 0}, 'status': {'id': '836e216e-0195-1000-d3b8-771b257f1fe6', 'name': 'NIFI_HL7_INTEGRATION_ENGINE_PG_ES_100325_latest', 'statsLastRefreshed': '10:16:27 IST', 'aggregateSnapshot': {'id': '836e216e-0195-1000-d3b8-771b257f1fe6', 'name': 'NIFI_HL7_INTEGRATION_ENGINE_PG_ES_100325_latest', 'statelessActiveThreadCount': 0, 'flowFilesIn': 0, 'bytesIn': 0, 'input': '0 (0 bytes)', 'flowFilesQueued': 0, 'bytesQueued': 0, 'queued': '0 (0 bytes)', 'queuedCount': '0', 'queuedSize': '0 bytes', 'bytesRead': 0, 'read': '0 bytes', 'bytesWritten': 0, 'written': '0 bytes', 'flowFilesOut': 0, 'bytesOut': 0, 'output': '0 (0 bytes)', 'flowFilesTransferred': 0, 'bytesTransferred': 0, 'transferred': '0 (0 bytes)', 'bytesReceived': 0, 'flowFilesReceived': 0, 'received': '0 (0 bytes)', 'bytesSent': 0, 'flowFilesSent': 0, 'sent': '0 (0 bytes)', 'activeThreadCount': 0, 'terminatedThreadCount': 0, 'processingNanos': 0}}, 'runningCount': 0, 'stoppedCount': 542, 'invalidCount': 6, 'disabledCount': 0, 'activeRemotePortCount': 0, 'inactiveRemotePortCount': 0, 'upToDateCount': 0, 'locallyModifiedCount': 0, 'staleCount': 0, 'locallyModifiedAndStaleCount': 0, 'syncFailureCount': 0, 'localInputPortCount': 0, 'localOutputPortCount': 0, 'publicInputPortCount': 0, 'publicOutputPortCount': 0, 'parameterContext': {'id': 'f24131aa-0fad-3876-f76a-591e810f66da', 'permissions': {'canRead': True, 'canWrite': True}, 'component': {'id': 'f24131aa-0fad-3876-f76a-591e810f66da', 'name': 'NiFi_Engine_Parameters'}}, 'inputPortCount': 0, 'outputPortCount': 0}], 'remoteProcessGroups': [], 'processors': [], 'inputPorts': [], 'outputPorts': [], 'connections': [], 'labels': [], 'funnels': []}, 'lastRefreshed': '10:16:27 IST'}}&lt;BR /&gt;&lt;BR /&gt;Awaiting for your response.&lt;BR /&gt;Thanks&lt;BR /&gt;Vijay Amirtharaj&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Mar 2025 04:59:25 GMT</pubDate>
    <dc:creator>AllIsWell</dc:creator>
    <dc:date>2025-03-12T04:59:25Z</dc:date>
    <item>
      <title>Not able to delete the NiFi existing flow using nifi-api</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Not-able-to-delete-the-NiFi-existing-flow-using-nifi-api/m-p/403950#M252245</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;I am trying to delete my nifi existing process group through nifi-api curl but unfortunately it gives me error that "The revision must be specified" but everything specified as per the documentation but still not working, below is the curl command what I used for delete the process group(flow) to my target system and also I can able to delete the same through UI but not works with rest api.&lt;BR /&gt;&lt;BR /&gt;curl -k -X DELETE "&lt;A href="https://localhost:28443/nifi-api/process-groups/704acbdf-0195-1000-d3d3-6a977a6c7d6e" target="_blank" rel="noopener"&gt;https://localhost:28443/nifi-api/process-groups/836e216e-0195-1000-d3b8-771b257f1fe6&lt;/A&gt;" \&lt;BR /&gt;-H "Content-Type: application/json" \&lt;BR /&gt;-H "Authorization: Bearer&amp;nbsp; Token" \&lt;BR /&gt;--data '{&lt;BR /&gt;"revision": {&lt;BR /&gt;"version": 0&lt;BR /&gt;},&lt;BR /&gt;"disconnectedNodeAcknowledged": false&lt;BR /&gt;}'&lt;BR /&gt;&lt;BR /&gt;ERROR: 400 - The revision must be specified.&lt;BR /&gt;&lt;BR /&gt;Also find the below is the output of the process_groups:&lt;BR /&gt;{'permissions': {'canRead': True, 'canWrite': True}, 'processGroupFlow': {'id': '187acb23-0195-1000-1908-1543c761f376', 'uri': '&lt;A href="https://localhost:28443/nifi-api/flow/process-groups/187acb23-0195-1000-1908-1543c761f376" target="_blank" rel="noopener"&gt;https://localhost:28443/nifi-api/flow/process-groups/187acb23-0195-1000-1908-1543c761f376&lt;/A&gt;', 'parameterContext': {'id': 'f24131aa-0fad-3876-f76a-591e810f66da', 'permissions': {'canRead': True, 'canWrite': True}, 'component': {'id': 'f24131aa-0fad-3876-f76a-591e810f66da', 'name': 'NiFi_Engine_Parameters'}}, 'breadcrumb': {'id': '187acb23-0195-1000-1908-1543c761f376', 'permissions': {'canRead': True, 'canWrite': True}, 'breadcrumb': {'id': '187acb23-0195-1000-1908-1543c761f376', 'name': 'NiFi Flow'}}, 'flow': {'processGroups': [{'revision': {'version': 0}, 'id': '836e216e-0195-1000-d3b8-771b257f1fe6', 'uri': '&lt;A href="https://localhost:28443/nifi-api/process-groups/836e216e-0195-1000-d3b8-771b257f1fe6" target="_blank" rel="noopener"&gt;https://localhost:28443/nifi-api/process-groups/836e216e-0195-1000-d3b8-771b257f1fe6&lt;/A&gt;', 'position': {'x': 392.0, 'y': 240.0}, 'permissions': {'canRead': True, 'canWrite': True}, 'bulletins': [], 'component': {'id': '836e216e-0195-1000-d3b8-771b257f1fe6', 'versionedComponentId': '3bcf353e-04bc-39e1-85fd-879f7318bb8a', 'parentGroupId': '187acb23-0195-1000-1908-1543c761f376', 'position': {'x': 392.0, 'y': 240.0}, 'name': 'NIFI_HL7_INTEGRATION_ENGINE_PG_ES_100325_latest', 'comments': '', 'parameterContext': {'id': 'f24131aa-0fad-3876-f76a-591e810f66da', 'permissions': {'canRead': True, 'canWrite': True}, 'component': {'id': 'f24131aa-0fad-3876-f76a-591e810f66da', 'name': 'NiFi_Engine_Parameters'}}, 'flowfileConcurrency': 'UNBOUNDED', 'flowfileOutboundPolicy': 'STREAM_WHEN_AVAILABLE', 'defaultFlowFileExpiration': '0 sec', 'defaultBackPressureObjectThreshold': 10000, 'defaultBackPressureDataSizeThreshold': '1 GB', 'executionEngine': 'INHERITED', 'maxConcurrentTasks': 1, 'statelessFlowTimeout': '1 min', 'runningCount': 0, 'stoppedCount': 542, 'invalidCount': 6, 'disabledCount': 0, 'activeRemotePortCount': 0, 'inactiveRemotePortCount': 0, 'upToDateCount': 0, 'locallyModifiedCount': 0, 'staleCount': 0, 'locallyModifiedAndStaleCount': 0, 'syncFailureCount': 0, 'localInputPortCount': 0, 'localOutputPortCount': 0, 'publicInputPortCount': 0, 'publicOutputPortCount': 0, 'statelessGroupScheduledState': 'STOPPED', 'inputPortCount': 0, 'outputPortCount': 0}, 'status': {'id': '836e216e-0195-1000-d3b8-771b257f1fe6', 'name': 'NIFI_HL7_INTEGRATION_ENGINE_PG_ES_100325_latest', 'statsLastRefreshed': '10:16:27 IST', 'aggregateSnapshot': {'id': '836e216e-0195-1000-d3b8-771b257f1fe6', 'name': 'NIFI_HL7_INTEGRATION_ENGINE_PG_ES_100325_latest', 'statelessActiveThreadCount': 0, 'flowFilesIn': 0, 'bytesIn': 0, 'input': '0 (0 bytes)', 'flowFilesQueued': 0, 'bytesQueued': 0, 'queued': '0 (0 bytes)', 'queuedCount': '0', 'queuedSize': '0 bytes', 'bytesRead': 0, 'read': '0 bytes', 'bytesWritten': 0, 'written': '0 bytes', 'flowFilesOut': 0, 'bytesOut': 0, 'output': '0 (0 bytes)', 'flowFilesTransferred': 0, 'bytesTransferred': 0, 'transferred': '0 (0 bytes)', 'bytesReceived': 0, 'flowFilesReceived': 0, 'received': '0 (0 bytes)', 'bytesSent': 0, 'flowFilesSent': 0, 'sent': '0 (0 bytes)', 'activeThreadCount': 0, 'terminatedThreadCount': 0, 'processingNanos': 0}}, 'runningCount': 0, 'stoppedCount': 542, 'invalidCount': 6, 'disabledCount': 0, 'activeRemotePortCount': 0, 'inactiveRemotePortCount': 0, 'upToDateCount': 0, 'locallyModifiedCount': 0, 'staleCount': 0, 'locallyModifiedAndStaleCount': 0, 'syncFailureCount': 0, 'localInputPortCount': 0, 'localOutputPortCount': 0, 'publicInputPortCount': 0, 'publicOutputPortCount': 0, 'parameterContext': {'id': 'f24131aa-0fad-3876-f76a-591e810f66da', 'permissions': {'canRead': True, 'canWrite': True}, 'component': {'id': 'f24131aa-0fad-3876-f76a-591e810f66da', 'name': 'NiFi_Engine_Parameters'}}, 'inputPortCount': 0, 'outputPortCount': 0}], 'remoteProcessGroups': [], 'processors': [], 'inputPorts': [], 'outputPorts': [], 'connections': [], 'labels': [], 'funnels': []}, 'lastRefreshed': '10:16:27 IST'}}&lt;BR /&gt;&lt;BR /&gt;Awaiting for your response.&lt;BR /&gt;Thanks&lt;BR /&gt;Vijay Amirtharaj&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2025 04:59:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Not-able-to-delete-the-NiFi-existing-flow-using-nifi-api/m-p/403950#M252245</guid>
      <dc:creator>AllIsWell</dc:creator>
      <dc:date>2025-03-12T04:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to delete the NiFi existing flow using nifi-api</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Not-able-to-delete-the-NiFi-existing-flow-using-nifi-api/m-p/404274#M252299</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/124525"&gt;@AllIsWell&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Somehow I feel you have some stale data.&amp;nbsp;&lt;SPAN&gt;Before deleting the process group, fetch its current state using the API to confirm the correct&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;version&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;number&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-SPOILER&gt;curl -k -X GET "&lt;A href="https://localhost:28443/nifi-api/process-groups/836e216e-0195-1000-d3b8-771b257f1fe6" target="_blank"&gt;https://localhost:28443/nifi-api/process-groups/836e216e-0195-1000-d3b8-771b257f1fe6&lt;/A&gt;" \&lt;BR /&gt;-H "Authorization: Bearer Token"&lt;/LI-SPOILER&gt;&lt;P&gt;Look for the&amp;nbsp;revision&amp;nbsp;object in the response. The&amp;nbsp;version&amp;nbsp;field should match what you include in your DELETE request.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Update the DELETE Request&lt;/STRONG&gt;&lt;BR /&gt;If the&amp;nbsp;version&amp;nbsp;in the response is not&amp;nbsp;0, update your DELETE request with the correct&amp;nbsp;version. For example, if the current version is&amp;nbsp;5, your request should look like this:&lt;/P&gt;&lt;LI-SPOILER&gt;curl -k -X DELETE "&lt;A href="https://localhost:28443/nifi-api/process-groups/836e216e-0195-1000-d3b8-771b257f1fe6" target="_blank"&gt;https://localhost:28443/nifi-api/process-groups/836e216e-0195-1000-d3b8-771b257f1fe6&lt;/A&gt;" \&lt;BR /&gt;-H "Content-Type: application/json" \&lt;BR /&gt;-H "Authorization: Bearer Token" \&lt;BR /&gt;--data '{&lt;BR /&gt;"revision": {&lt;BR /&gt;"version": &amp;lt;Value from above&amp;gt;&lt;BR /&gt;},&lt;BR /&gt;"disconnectedNodeAcknowledged": false&lt;BR /&gt;}'&lt;/LI-SPOILER&gt;&lt;P&gt;&lt;STRONG&gt;Validate the JSON&lt;/STRONG&gt;:&lt;BR /&gt;Ensure that the JSON payload is valid. You can use tools like&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://jsonlint.com/" target="_blank" rel="noopener noreferrer"&gt;JSONLint&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to validate the structure.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Check for Trailing Slashes&lt;/STRONG&gt;:&lt;BR /&gt;Ensure there are no trailing slashes in the URL. For example, use&amp;nbsp;&lt;STRONG&gt;&lt;A href="https://localhost:28443/nifi-api/process-groups/836e216e-0195-1000-d3b8-771b257f1fe6" target="_blank"&gt;https://localhost:28443/nifi-api/process-groups/836e216e-0195-1000-d3b8-771b257f1fe6&lt;/A&gt;&lt;/STRONG&gt;&amp;nbsp;instead of&amp;nbsp;&lt;STRONG&gt;&lt;A href="https://localhost:28443/nifi-api/process-groups/836e216e-0195-1000-d3b8-771b257f1fe6/" target="_blank"&gt;https://localhost:28443/nifi-api/process-groups/836e216e-0195-1000-d3b8-771b257f1fe6/&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;Disconnected Node Acknowledgment&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;/STRONG&gt;If your NiFi cluster has disconnected nodes, you may need to set&amp;nbsp;&lt;EM&gt;disconnectedNodeAcknowledged&lt;/EM&gt; to &lt;EM&gt;true&lt;BR /&gt;&lt;/EM&gt;&lt;BR /&gt;Final Notes:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;If the issue persists, double-check the API documentation for any changes or additional requirements.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Ensure that the&amp;nbsp;Authorization&amp;nbsp;token is valid and has the necessary permissions to delete the process group.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;If you are using a NiFi version older than 1.12.0, the API behavior might differ slightly, so consult the documentation for your specific version.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Happy hadooping&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 17:18:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Not-able-to-delete-the-NiFi-existing-flow-using-nifi-api/m-p/404274#M252299</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2025-03-17T17:18:02Z</dc:date>
    </item>
  </channel>
</rss>

