-
Notifications
You must be signed in to change notification settings - Fork 265
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
Delete bulk subscriptions using script #4578
Comments
Maybe this can be useful: https://github.com/telefonicaid/fiware-orion/blob/master/scripts/utils/delete_entities_by_list.py I think the code is pretty straightforward, but if you some doubt, just ask it :) |
Ah, sorry... those scripts are for entities and you are asking for subscriptions I think we don't have such script. Maybe a delete_subscriptions.py script (based on the previous ones) could be useful. It would be an interesting contribution :) |
Yes, for subscriptions:)
Yes, I am looking into it. |
Before starting, I want to confirm few point:
@fgalan, Please confirm above steps. And if you have any suggestion please let me know. |
That's correct! I'd suggest to implement the script in Python, with his the tooling language that we use in this repository. Regarding step 2, to collect subscription IDs, the Finally, as an extra feature of your script it would be interesting to include filtering capabilities, based in the JSON of each subscription obtained. For instance, delete subscription which match a given |
PR #4626 |
Now that PR #4626 has been merged, should this issue be closed? |
Yes. Closed as completed. |
Bug description
I have thousands of subscription created in my orion setup.
Is there any script available, using which I can delete all subscriptions using IDs.
If not, shouldn't we have a script (python/shell) which can delete multiple subscription on single click.
The text was updated successfully, but these errors were encountered: