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

Bulk Delete? #175

Closed
lamoni opened this issue Aug 19, 2019 · 2 comments
Closed

Bulk Delete? #175

lamoni opened this issue Aug 19, 2019 · 2 comments

Comments

@lamoni
Copy link

lamoni commented Aug 19, 2019

Is it possible to batch delete devices, sites, etc...?

Currently, I'm looping through .dcim.devices.all() and calling delete() per object in that list, but it can take quite awhile as that's an HTTP request per device/site/whatever

Thanks!

@zachmoody
Copy link
Contributor

I'm afraid not, the NetBox API only accepts DELETE on detail endpoints currently so you'd need the object's id to delete anyways.

@lamoni
Copy link
Author

lamoni commented Aug 20, 2019

For future reference, issue on netbox github is discussed here. Seems there is support for the idea, so hopefully this will be a possibility in the future: netbox-community/netbox#3436

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