Get all clients of client scope

When I want to delete some scope, but that scope is associated to some client as optional or default scope, it’s not possible to delete it (scope).
Is there way how to get all clients associated to scope?
I was trying with GET /{realm}/client-scopes/{id}/scope-mappings but this endpoint doesn’t return clients associated, it only returns roles when scope is assigned in role.


There is table client_scope_client but I can’t find any endpoint which exports this data.