I've tested my doubt. Only deleting referenced templates in a group enables deleting itself.
Makoto 2017-01-28 14:30 GMT+09:00 Makoto Hashimoto <[email protected]>: > Hi Andy, > > Actually, I did as you explained. There are more than 7 templates in my > Nifi environments > but I could delete the group after deleting 7 templates. > > One doubt is I have not used 7 templates in that group but I'm not sure. > > Makoto > > 2017-01-28 12:59 GMT+09:00 Andy LoPresto <[email protected]>: > >> Makoto, >> >> For future reference, you only need to delete the templates contained in >> the process group you are trying to delete. You can see the process group >> ID in the templates listing — any that match the UUID of the PG you are >> deleting need to be deleted, but others are fine. >> >> Andy LoPresto >> [email protected] >> *[email protected] <[email protected]>* >> PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4 BACE 3C6E F65B 2F7D EF69 >> >> On Jan 27, 2017, at 7:56 PM, Makoto Hashimoto <[email protected]> >> wrote: >> >> Hi all, >> >> I could delete the process group after deleting all templates in my >> environment. >> >> MH >> >> >> 2017-01-28 12:38 GMT+09:00 Andy LoPresto <[email protected]>: >> >>> Created NIFI-3417 [1] to address this. >>> >>> [1] https://issues.apache.org/jira/browse/NIFI-3417 >>> >>> Andy LoPresto >>> [email protected] >>> *[email protected] <[email protected]>* >>> PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4 BACE 3C6E F65B 2F7D EF69 >>> >>> On Jan 27, 2017, at 7:35 PM, Joe Witt <[email protected]> wrote: >>> >>> That certainly sounds JIRA worthy though. Templates should not be able >>> to block the destruction of a process group. >>> >>> On Fri, Jan 27, 2017 at 10:32 PM, Andy LoPresto <[email protected]> >>> wrote: >>> >>>> Makoto, >>>> >>>> Templates are tied to process groups. Unfortunately, this means that to >>>> delete the group, you will have to delete the templates first. You can do >>>> this by using the “hamburger” global menu at the top right of the UI and >>>> selecting “Templates”, then deleting the templates which reside in this >>>> process group (export them to XML first if you want to save them). >>>> >>>> If you want to move those templates out of the PG, and you are >>>> comfortable working in XML, a less-enticing option is to stop the >>>> application, uncompress and open the flow.xml.gz file, and move the >>>> template entries out of the process group to root or another group, being >>>> sure to update any references in the XML. Then save and compress the file, >>>> and restart the application. >>>> >>>> I understand this is not an ideal solution. I’m going to file a Jira >>>> documenting this and suggest that the dialog allows you to select one of >>>> three options: >>>> >>>> 1. Delete process group and all contained templates >>>> 2. Delete process group and move templates to parent PG (this could >>>> cause issues because the components and connections will no longer be >>>> defined) >>>> 3. Cancel the delete operation. >>>> >>>> I’ll also suggest improving the documentation to make this situation >>>> clearer. >>>> >>>> <template_delete.png> >>>> >>>> >>>> Andy LoPresto >>>> [email protected] >>>> *[email protected] <[email protected]>* >>>> PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4 BACE 3C6E F65B 2F7D EF69 >>>> >>>> On Jan 27, 2017, at 7:12 PM, Makoto Hashimoto <[email protected]> >>>> wrote: >>>> >>>> Hi, >>>> >>>> I'm trying to delete an empty group. >>>> >>>> <image.png> >>>> >>>> However, it fails with the following error. >>>> >>>> <image.png> >>>> >>>> Is something wrong with my operation and could someone would help to >>>> solve this problem ? >>>> >>>> Regards, >>>> MH >>>> >>>> >>> >> >> >
