<?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 Re: How can I delete a process group using the API? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-delete-a-process-group-using-the-API/m-p/229615#M82521</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/48501/joshnicholson.html" nodeid="48501"&gt;@Josh Nicholson&lt;/A&gt;&lt;P&gt;To get &lt;STRONG&gt;ClientID and revision number&lt;/STRONG&gt; of the&lt;STRONG&gt; processor group&lt;/STRONG&gt; make GET  RestAPI call for Process group.&lt;/P&gt;&lt;PRE&gt;curl -X GET &lt;A href="http://&amp;lt;url&amp;gt;/nifi-api/flow/process-groups/&amp;lt;process-groupid&amp;gt;" target="_blank"&gt;http://&amp;lt;url&amp;gt;/nifi-api/flow/process-groups/&amp;lt;process-groupid&amp;gt;&lt;/A&gt;;&lt;/PRE&gt;&lt;P&gt;This Get method results you the &lt;STRONG&gt;clientid&lt;/STRONG&gt; and &lt;STRONG&gt;revision number&lt;/STRONG&gt; of the process group so when we are deleting particular process group then we need to pass these values in to the delete rest api call&lt;/P&gt;&lt;PRE&gt;curl -X DELETE '&amp;lt;url&amp;gt;/nifi-api/process-groups/&amp;lt;process-groupid&amp;gt;?version=&amp;lt;version_number&amp;gt;&amp;amp;clientId=&amp;lt;clientid&amp;gt;'&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Example:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;i have a process group with id 5eb0e7db-0165-1000-e40b-62a0bae27474 to get clientid and version details:&lt;/P&gt;&lt;PRE&gt;$ curl -X GET &lt;A href="http://localhost:8081/nifi-api/flow/process-groups/5eb0e7db-0165-1000-e40b-62a0bae27474" target="_blank"&gt;http://localhost:8081/nifi-api/flow/process-groups/5eb0e7db-0165-1000-e40b-62a0bae27474&lt;/A&gt;
[{"revision":{"clientId":"5ea367bc-0165-1000-74ab-d0e36167547e","version":1},"id":"5eb10684-0165-1000-fee6-01cbff4570a6","uri":"http://localhost:8081/nifi-api/output-ports/5eb10684-0165-1000-fee6-01cbff4570a6"}&lt;/PRE&gt;&lt;P&gt;As you can see my version is 1 so in my Delete call i'm using same client id and version number&lt;/P&gt;&lt;PRE&gt;curl -X DELETE 'http://localhost:8081/nifi-api/process-groups/5eb0e7db-0165-1000-e40b-62a0bae27474?version=2&amp;amp;clientId=5ea367bc-0165-1000-74ab-d0e36167547e'&lt;/PRE&gt;&lt;P&gt;Then the process group will be deleted. &lt;/P&gt;&lt;P&gt;if you are creating a shell script then you need to extract the &lt;STRONG&gt;clientid and version&lt;/STRONG&gt; store it in a variable and pass those variables in your Delete call, so that you can automate your job using shell script.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Aug 2018 06:01:56 GMT</pubDate>
    <dc:creator>Shu_ashu</dc:creator>
    <dc:date>2018-08-22T06:01:56Z</dc:date>
    <item>
      <title>How can I delete a process group using the API?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-delete-a-process-group-using-the-API/m-p/229614#M82520</link>
      <description>&lt;P&gt;I am wanting to delete a process group from NiFi by using a curl command to the API. I tried using the following command.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;curl -k -X DELETE -H "Authorization: Bearer $token" $cluster_url/nifi-api/process-groups/$process_group_uuid&lt;/PRE&gt;&lt;P&gt;But I get the error that the revision must be specified. When I delete a process group using the UI, I can see using Chrome dev tools that both a revision and client ID are specified. How can I get these values so I can use curl to delete the process group?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 02:59:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-delete-a-process-group-using-the-API/m-p/229614#M82520</guid>
      <dc:creator>josh_nicholson</dc:creator>
      <dc:date>2018-08-22T02:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: How can I delete a process group using the API?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-delete-a-process-group-using-the-API/m-p/229615#M82521</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/48501/joshnicholson.html" nodeid="48501"&gt;@Josh Nicholson&lt;/A&gt;&lt;P&gt;To get &lt;STRONG&gt;ClientID and revision number&lt;/STRONG&gt; of the&lt;STRONG&gt; processor group&lt;/STRONG&gt; make GET  RestAPI call for Process group.&lt;/P&gt;&lt;PRE&gt;curl -X GET &lt;A href="http://&amp;lt;url&amp;gt;/nifi-api/flow/process-groups/&amp;lt;process-groupid&amp;gt;" target="_blank"&gt;http://&amp;lt;url&amp;gt;/nifi-api/flow/process-groups/&amp;lt;process-groupid&amp;gt;&lt;/A&gt;;&lt;/PRE&gt;&lt;P&gt;This Get method results you the &lt;STRONG&gt;clientid&lt;/STRONG&gt; and &lt;STRONG&gt;revision number&lt;/STRONG&gt; of the process group so when we are deleting particular process group then we need to pass these values in to the delete rest api call&lt;/P&gt;&lt;PRE&gt;curl -X DELETE '&amp;lt;url&amp;gt;/nifi-api/process-groups/&amp;lt;process-groupid&amp;gt;?version=&amp;lt;version_number&amp;gt;&amp;amp;clientId=&amp;lt;clientid&amp;gt;'&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Example:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;i have a process group with id 5eb0e7db-0165-1000-e40b-62a0bae27474 to get clientid and version details:&lt;/P&gt;&lt;PRE&gt;$ curl -X GET &lt;A href="http://localhost:8081/nifi-api/flow/process-groups/5eb0e7db-0165-1000-e40b-62a0bae27474" target="_blank"&gt;http://localhost:8081/nifi-api/flow/process-groups/5eb0e7db-0165-1000-e40b-62a0bae27474&lt;/A&gt;
[{"revision":{"clientId":"5ea367bc-0165-1000-74ab-d0e36167547e","version":1},"id":"5eb10684-0165-1000-fee6-01cbff4570a6","uri":"http://localhost:8081/nifi-api/output-ports/5eb10684-0165-1000-fee6-01cbff4570a6"}&lt;/PRE&gt;&lt;P&gt;As you can see my version is 1 so in my Delete call i'm using same client id and version number&lt;/P&gt;&lt;PRE&gt;curl -X DELETE 'http://localhost:8081/nifi-api/process-groups/5eb0e7db-0165-1000-e40b-62a0bae27474?version=2&amp;amp;clientId=5ea367bc-0165-1000-74ab-d0e36167547e'&lt;/PRE&gt;&lt;P&gt;Then the process group will be deleted. &lt;/P&gt;&lt;P&gt;if you are creating a shell script then you need to extract the &lt;STRONG&gt;clientid and version&lt;/STRONG&gt; store it in a variable and pass those variables in your Delete call, so that you can automate your job using shell script.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 06:01:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-delete-a-process-group-using-the-API/m-p/229615#M82521</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2018-08-22T06:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I delete a process group using the API?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-delete-a-process-group-using-the-API/m-p/229616#M82522</link>
      <description>&lt;P&gt;Very nice and interesting&lt;BR /&gt;&lt;A href="https://www.welookups.com"&gt;https://www.welookups.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 23:37:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-delete-a-process-group-using-the-API/m-p/229616#M82522</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-08-23T23:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: How can I delete a process group using the API?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-delete-a-process-group-using-the-API/m-p/229617#M82523</link>
      <description>&lt;P&gt;This worked, thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 00:44:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-delete-a-process-group-using-the-API/m-p/229617#M82523</guid>
      <dc:creator>josh_nicholson</dc:creator>
      <dc:date>2018-08-24T00:44:18Z</dc:date>
    </item>
  </channel>
</rss>

