Removing an SBI from the PND's SBI store should also remove the devices using that specific SBI

If an SBI is removed from a PND it is removed from the PND's SBI store. All devices using that specific SBI still remain registered, even though the SBI is not supported by the PND anymore.

Description

Expected Behavior

If an SBI is removed from a PND's SBI store all devices using that specific SBI should be removed as well.

Actual Behavior

An SBI is removed from the store but all registered devices using that SBI are still within the PNS's device store.

Possible Fix

While removing an SBI check for all devices referencing that SBI and delete them.

Steps to Reproduce

Context

Your Environment

  • Version used:
  • Environment name and version (e.g. go v1.16.3 on FreeBSD 13.0-current):
  • Server type and version:
  • Operating System and version: