please see my question below.
What product/components do you use and which version/fix level?
Are you using a free trial or a product with a customer license?
What are trying to achieve? Please describe in detail.
Edit: Sorry for the confusion: I often use Component in terms of Device. Component = Device in my post.
I would like to delete all child-components of a component when I delete the component.
When I delete CompA, I would like to be deleted CompA-1 and CompA-1-1 as well.
When I delete CompA-1, I would like CompA-1-1 to be deleted as well.
When I delete a component in the Device-Manager, the child components still exist.
Is there a method?
Maybe via PostMan ?
Thanks for any help!
You can use the
forceCascade query parameters when deleting managed objects to remove the objects and its child hierarchy. You can find the documentation about this here: Cumulocity IoT - OpenAPI Specification
cascade only works on devices and device groups. Keep in mind that child devices usually are not classified as devices. Here you can use the
This will remove the targeted managed object and all its children in all three child hierarchies (child devices, child assets, and child additions) permanently. This is propagated through all levels in the child hierarchy of the object.
Thank you - it works.