question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hierarchical deletion

See original GitHub issue

Consider the following, fictional hierarchy, made with this library:

1
   1.1
         1.1.1

So 1.1.1 is a child of 1.1, which is a child of 1.

Would it be possible to start at either one of those three and delete all the children, recursively, with this library? Or could you point me towards a code example which can do this? I can’t seem to find any documentation, issues or code related to this.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:13 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
deksdencommented, Aug 4, 2017

Found this via search, but i m sure info about deleting nodes should be specified in readme!

isHierarchy({onDelete: 'CASCADE'}) 

Do you need some PR on readme?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Introducing hierarchical deletion to easily clean up unused ...
Amazon Forecast just launched the ability to hierarchically delete resources at a parent level without having to locate the child resources.
Read more >
Deleting Hierarchies
When you delete a hierarchy, the nodes within the hierarchy are not deleted. If the nodes do not exist in any other hierarchy...
Read more >
Deleting Hierarchies - Informatica Documentation
Deleting Hierarchies · In the Hierarchies tool, acquire a write lock. · In the navigation tree, right-click the hierarchy that you want to...
Read more >
GDC: Delete All Records in a Hierarchy
Steps for deleting all related records in a hierarchy (bibliographic, holdings, item) using Global Data Change.
Read more >
A hierarchical approach to removal of unwanted variation for ...
1c; and (ii) a scalable hierarchical approach to removal of unwanted variation between batches with the use of carefully assigned sample ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found