Delete Device-Manager Components (Devices)

Hi Community,
please see my question below.

What product/components do you use and which version/fix level?

Cumulocity

Backend: 1011.0.12
UI: 1011.0.12

Are you using a free trial or a product with a customer license?

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.

e.g.
CompA
    |..........CompA-1
                    |-------CompA-1-1

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!
BR
Manfred

You can use the cascade or 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 forceCascade parameter.

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.

Hi Philipp
Thank you - it works.