scripts: policy-device-profile: clear tables when devices removed

P V requested to merge pvir/wireplumber:fix-profiles into master

When device ids are invalidated, clear all local tables about them, because the id may be reused by different object, or the same object reappearing.

Fixes #234 (closed)

Edited by P V

Merge request reports