Delete parent/child pipelines
Problem
Follow up issue from !21365 (comment 257876879)
Currently, we don't have a way to delete child pipelines. When a parent pipeline is deleted via the UI/API it's children are orphaned.
To avoid orphaned children:
- When deleting the parent pipeline we should also delete the child pipelines (this issue)
Follow-up:
- A non-orphaned child pipeline cannot be directly deleted (deletion must be triggered through the parent) #457562
Workaround
The workaround to delete orphaned children via the api by finding them via source
MR: !149839 (merged)
Proposal
As we did for Cascade parent/child pipeline cancellation (#273378 - closed) we can iterate through all child pipelines (including nested ones) and kick off an async deletion for each child pipeline.
Edited by Allison Browne