remove-model
Skill by netbox-community
Guides developers through removing an existing model from NetBox in a safe deletion order. It covers tests, docs, API, GraphQL, views, forms, the model and the migration.
Install remove-model
Built from the published package, never by AI.
git clone --depth 1 https://github.com/netbox-community/netbox /tmp/netbox && mkdir -p ~/.claude/skills && cp -r /tmp/netbox/.claude/skills/remove-model ~/.claude/skills/remove-modelRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/netbox-community/netbox /tmp/netbox && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/netbox/.claude/skills/remove-model ~/.gemini/antigravity-cli/skills/remove-modelAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The remove-model skill is a step-by-step guide for removing an existing model from NetBox. It lists the roughly 13 components to undo and orders them so that consumers are removed before the code they depend on. It starts with a broad grep for references, then covers tests, docs, navigation, search, GraphQL, the REST API, URL routes, views, tables, forms, the filterset, choices and the model class.
The last step is generating the migration. The skill says not to write migrations by hand and to confirm with the user before running makemigrations, because deletion is irreversible once migrated. It is aimed at NetBox developers who need to remove or deprecate a model or object type.
Written from the project's SKILL.md and checked against it.
What it can do
- Dependency-ordered removalLists the touch points in an order that removes consumers before providers.
- Reference searchProvides grep commands to find every mention of a model before editing.
- Per-layer instructionsExplains what to remove from GraphQL, the REST API, views, forms, tables and models.
- Migration guidanceTells the user to run makemigrations and migrate, and to review the DeleteModel operation.
- Gotchas listNotes stale ContentType rows, dangling __all__ re-exports and nested serializer references.
- Summary checklistProvides a table of files and actions for all 14 steps.
What you need
- A NetBox source checkout
- Python with access to manage.py in the netbox/ directory
- ruff for linting
Try asking
- Remove the MyModel model from the dcim app in NetBox
- Find every file that references a model before I delete it
- Walk me through removing a NetBox model and its migration
Good to know
- Deleting a model is irreversible once it has been migrated.
- The skill says not to write migrations manually; the user runs makemigrations.
- Models with non-nullable foreign keys from retained models must be fixed first.
- Use ruff check only, not ruff format, on existing files.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/remove-model/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md9 KB
Alternatives to remove-model
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
remove-model: common questions
Does this skill write the migration for me?
No. The source says not to write migrations manually and tells the user to run makemigrations and then migrate.
What should I do before removing a model?
Run the provided grep commands and check for other models with foreign keys or many-to-many fields pointing to it. Non-nullable foreign keys from retained models must be removed or made nullable first.
Are leftover ContentType rows a problem?
The source says they are harmless but can be cleaned up with python manage.py remove_stale_contenttypes.
How do I install remove-model?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is remove-model free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is remove-model safe to use?
It scores 90 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to remove-model?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
