Documentation regarding the removal of plugin models from the database is incomplete #9915

Closed
opened 2025-12-29 21:24:19 +01:00 by adam · 2 comments
Owner

Originally created by @peteeckel on GitHub (Jun 27, 2024).

Originally assigned to: @peteeckel on GitHub.

Change Type

Addition

Area

Administration

Proposed Changes

https://netboxlabs.com/docs/netbox/en/stable/plugins/removal/ describes the removal of a plugin's models from the database.

What's missing however is the information how to remove a plugin's resources from the database so that it can be reinstalled at a later time. The problem is that the plugin's migrations are not deleted from django_migrations, so any attempt to install the plugin at a later time will fail because Django thinks that the migrations have already been executed.

The documentation should describe how to remove the migration entries from django_migrations as well.

Originally created by @peteeckel on GitHub (Jun 27, 2024). Originally assigned to: @peteeckel on GitHub. ### Change Type Addition ### Area Administration ### Proposed Changes https://netboxlabs.com/docs/netbox/en/stable/plugins/removal/ describes the removal of a plugin's models from the database. What's missing however is the information how to remove a plugin's resources from the database so that it can be reinstalled at a later time. The problem is that the plugin's migrations are not deleted from `django_migrations`, so any attempt to install the plugin at a later time will fail because Django thinks that the migrations have already been executed. The documentation should describe how to remove the migration entries from `django_migrations` as well.
adam added the status: acceptedtype: documentationseverity: low labels 2025-12-29 21:24:19 +01:00
adam closed this issue 2025-12-29 21:24:20 +01:00
Author
Owner

@peteeckel commented on GitHub (Jun 27, 2024):

Hi @arthanson. You can assign that one to me as well. It's just two sentences in the docs.

@peteeckel commented on GitHub (Jun 27, 2024): Hi @arthanson. You can assign that one to me as well. It's just two sentences in the docs.
Author
Owner

@arthanson commented on GitHub (Jun 27, 2024):

@peteeckel done. Thank you.

@arthanson commented on GitHub (Jun 27, 2024): @peteeckel done. Thank you.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9915