cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to delete all objects in tree structure?

BenAvdicevic
Honored Contributor

Hello,

I am trying to figure out how to delete all business capabilities in a capability map - without having to delete each capability by hand manually.

 

For example

I want to delete the whole capability tree "ABY - TEST BCM" in picture below.

 

I obviously don't want to delete "applications" associated to these objects.  Just the 4 objects in the screenshot:

 

  • 1 Capability Map object
  • 3 Capability Objects

 

BenAvdicevic_0-1665107762298.png

 

NOTE: Similar scenario arises in other capability models

  • Functionality Map
  • Technology Functionality Maps
  • Hardware Functionality

Probably other examples where this would be useful to do.

4 Replies

BenAvdicevic
Honored Contributor

@DaveM Thanks for that.  I feel you're probably correct with the "query" path.

I'll discuss with team.  

Thanks again!

DaveM
Super Contributor

If you can write a Query that selects all the Composition objects and the associated Capabilities connected to the Capability map, you can then just "select all" from the results and delete them. You may have to use deeply in the query to traverse the whole map when there are multiple levels.

BenAvdicevic
Honored Contributor

Still trying to understand this better. Is there a way to do this in HOPEX? We're seeing this use case come up as we're adding more capability maps and/or functionality maps to HOPEx.

BenAvdicevic
Honored Contributor

I should add.

 

Currently, when you delete the parent object - the Capability Map - it just deletes that object and the associations to other objects.

 

The three Business Capability objects remain in the repository - and have to be deleted individually.