Deleting tagged Access Profile (AP) leads to orphaned TAG data

Hi,

deleting a tagged AP in isc leads to dead link between AP and its TAG. The link between AP and TAG remains. The TAG can not be deleted anymore, because of the violation of referential integrity.

“List of tagged objects API” returns the deleted APID but the referenced AP doesnt exists any more. So the TAG can not be deleted any more.

Why deleting an AP doesnt delete also its TAG reference?

There is no automatic deletion instead of an extra API for that deletion:

DELETE /tagged-objects/:type/:id

type: ACCESS_PROFILE
id: Id of Acess Profile