Unable to delete a device #22783
Replies: 2 comments
|
Hi @IsaacFL, Sorry you're running into this. The error suggests that a database table from NetBox Topology Views was left behind when the plugin was removed and still references the device. Please back up your database first, then follow the plugin removal guide, particularly the steps for removing the plugin's database tables and migration records. Also check the plugin's documentation for any plugin-specific removal steps. Another possible approach is to reinstall and temporarily re-enable the same plugin version, then try reversing its migrations: /opt/netbox/venv/bin/python3 /opt/netbox/netbox/manage.py migrate netbox_topology_views zeroI haven't tested this approach, and it might not work if the plugin version is incompatible with your current NetBox release, so please proceed with caution. |
|
finally gave up. needs to be stable for me to use |
Uh oh!
There was an error while loading. Please reload this page.
Trying to delete a device and get an error. I had the topology plugin at one time installed but removed and maybe related to that?
Server Error
There was a problem with your request. Please contact an administrator.
The complete exception is provided below:
<class 'django.db.utils.IntegrityError'>
update or delete on table "dcim_device" violates foreign key constraint "netbox_topology_view_device_id_436f3bfe_fk_dcim_devi" on table "netbox_topology_views_coordinate"
DETAIL: Key (id)=(37) is still referenced from table "netbox_topology_views_coordinate".
Python version: 3.13.5
NetBox version: 4.6.5
Plugins: None installed
The request which yielded the above error is shown below:
POST https://netbox.iznmort.com/dcim/devices/37/delete/?return_url=/dcim/devices/
If further assistance is required, please post to the NetBox discussion forum on GitHub.
All reactions