Describe the bug
Devices that are no longer connected to OpenWISP cannot be deleted.
This issue occurs because, in #840, we introduced a check requiring a device's config status to be set to deactivated before allowing deletion. However, this prevents users from deleting disconnected devices that cannot update their config status.
Steps To Reproduce
- Navigate to the Devices section.
- Select a device that is no longer connected to OpenWISP.
- Attempt to delete the device.
Expected behavior
It should be possible to delete the device
Workaround for users affected by this bug
Use the following steps to delete the device:
- Delete the configuration of the device
- Deactivate the device
- After deactivating, delete button would be visible on the device page. You can delete the device normally.
Describe the bug
Devices that are no longer connected to OpenWISP cannot be deleted.
This issue occurs because, in #840, we introduced a check requiring a device's config status to be set to
deactivatedbefore allowing deletion. However, this prevents users from deleting disconnected devices that cannot update their config status.Steps To Reproduce
Expected behavior
It should be possible to delete the device
Workaround for users affected by this bug
Use the following steps to delete the device: