Skip to content
Discussion options

You must be logged in to vote

Try that:

sudo /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py nbshell
>>> from django.contrib.contenttypes.models import ContentType
>>> ct_qs = ContentType.objects.filter(app_label__icontains="phone")
>>> for ct in ct_qs:
...          print(ct)
### ^^^ These will be removed, make sure its ok
>>> ct_qs.delete()

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@goteamkor
Comment options

@candlerb
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by goteamkor
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants