Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Registrar - Does not delete devices in the registry which are not in the site model #378

Open
noursaidi opened this issue Jun 28, 2022 · 3 comments

Comments

@noursaidi
Copy link
Collaborator

When running registrar, if there are devices registered in the IoT core registry, which are not defined in the site model, they are not deleted from the registry.

Default behaviour should be to remove them, so the registry matches the site model

@grafnu
Copy link
Collaborator

grafnu commented Jun 28, 2022 via email

@noursaidi
Copy link
Collaborator Author

Right now it blocks them rather than removing them.

It's stopped doing that .. but I've just checked and seems to because it's become a configurable parameter. I've done a PR #382 to change the default.

But true about deletion, you're right. Default behaviour would be to block, and then a flag to delete devices if required (devices need to be unbound from respective gateways before they can be deleted). Maybe even a backup.. We have a use-case where a registry has with 20k of which about 5k are proxy devices aren't in the site model and were accidently created so need to be removed.

@grafnu
Copy link
Collaborator

grafnu commented Jun 29, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants