nano-core/nano.templates/nano-remove-storage-provider
Claude Code and agent skill by nano-core/nano.templates
- community
Checking that the SKILL.md file is still in the repository.
Remove a Nano storage provider (Local or Azure) from a Nano.Library-based application - unregisters it in Program.cs and removes the Storage configuration, local docker-compose volume mount, and the Kubernetes persistent volume (plus, for Azure, the Staging/Production fileshare-provisioning CI step). Use when the user asks to remove file storage, a fileshare, or a specific storage provider from a Nano API, Web, or Console application.
Install
npx vskill@latest install nano-core/nano.templates/nano-remove-storage-providerSKILL.md
The same SKILL.md was published earlier as nano-core/nano.templates/nano-remove-storage-provider.
Nano remove storage provider
Fully removes a Nano storage provider from an existing Nano API, Web, or Console application — the counterpart to nano-add-storage-provider. Read that skill first — this one undoes exactly what it adds, file for file.
Before making any change, determine
- Which provider is currently registered? Check
Program.csfor.AddNanoStorage<...>().
If none, say so and stop.
- What depends on it? Per AGENTS.md's
## Nano.Storagesection, registering a provider also
registers IPathProvider, "injectable anywhere" — search the project for it used as a constructor parameter. A required IPathProvider parameter fails DI resolution the moment the provider is gone — the app won't start at all. This is the only dependency risk here: unlike Eventing, there's no declarative attribute ([Publish]/[Subscribe]) tied to storage that would silently stop working instead — anything using it does so explicitly, in code. If a required injection exists, tell the user removing the provider will crash the app there and confirm before proceeding.
- Is the package reference this skill's to remove? Same check as the other remove skills:
leave NanoCore/Nano.All alone if present; otherwise remove the Nano.Storage.<Provider> PackageReference from the application project.
Program.cs
Remove using Nano.Storage.Extensions;, using Nano.Storage.<Provider>;, and the .AddNanoStorage<...>() call. Same empty-lambda cleanup as the other remove-provider skills: restore the blank-app placeholder and _ parameter if nothing else is left in .ConfigureServices(...).
appsettings.json
Remove the Storage section entirely from the base appsettings.json. There's no Development-specific override to also clean up — per nano-add-storage-provider, ShareName isn't sensitive and stays in the base file only, for both providers.
docker-compose.yml
Remove the volumes entry mapping ./bin/<share-name>:/mnt/<share-name> from the app's own service in .docker/docker-compose.yml. Unlike a data or eventing provider, storage never added a separate service container — just this one volume line — so there's nothing else to remove here.
Kubernetes — Local
- Delete
.kubernetes/storage-storageclass.yamland.kubernetes/service-headless.yaml. - If the app was converted to a
StatefulSetfor this provider (.kubernetes/stateful-set.yaml
present, serviceName: %SERVICE_NAME%-stateful-headless set), revert it to a plain Deployment: rename the file back to deployment.yaml, change kind: StatefulSet → kind: Deployment, remove the serviceName field, and remove the volumeClaimTemplates block (there's no static PersistentVolumeClaim file to restore in its place — the volume is gone entirely, not replaced). .kubernetes/autoscaler.yaml is always present on an API/Web app — if its scaleTargetRef.kind was changed to StatefulSet (i.e. the app was converted per the above), change it back to Deployment.
- Remove the
volumeMounts/volumesentries referencing%SERVICE_NAME%-volumefrom the
deployment/stateful-set container spec. Also remove the tmp emptyDir volume/mount (IPathProvider's temporary directory, per AGENTS.md) — but only if nothing else in the container mounts /tmp for an unrelated reason; check first.
- Remove the
storage-storageclass.yaml/service-headless.yamlapply blocks from the
Kubernetes Deploy workflow step.
- Remove the
STORAGE_SIZE/STORAGE_SHARE_NAMEworkflow env vars, if nothing else uses them.
Kubernetes — Azure
- Delete
.kubernetes/storage-pv.yamland.kubernetes/storage-pvc.yaml. - Remove the
volumeMounts/volumesentries referencing%SERVICE_NAME%-volumefrom
.kubernetes/deployment.yaml. Also remove the tmp emptyDir volume/mount, with the same caveat as the Local section above — only if nothing else needs /tmp.
- Remove the
Storage Role PermissionsandCreate Fileshareworkflow steps, and the
$env:VOLUME_NAME_SUFFIX = ... derivation step, if nothing else in the workflow still uses %VOLUME_NAME_SUFFIX%.
- Remove the
storage-pv.yaml/storage-pvc.yamlapply block fromKubernetes Deploy. - Remove the
STORAGE_SIZE/STORAGE_SHARE_NAMEworkflow env vars. Only remove
AZURE_GROUP_STORAGE/AZURE_GROUP_BACKUP if nothing else in the workflow still references them — Managed Identity or other Azure-backed providers may share them.
After making the change
- Show the user every file touched/deleted, grouped by concern (app code, local docker-compose,
and for Azure, Staging/Production CI + K8s) — same reasoning as the add skill: too many files for a flat list to be easy to sanity-check.
- Restate anything flagged in step 2 — a required
IPathProviderinjection that will now crash
the app — one more time here, even if the user already confirmed it.
- If a step was skipped because the project uses
NanoCore/Nano.All, say so explicitly.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingApi.Public/.claude/skills/nano-remove-storage-provider/SKILL.md
Popularity
- Repository stars
- 5
- Repository forks
- 2
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/nano-core/nano.templates/nano-remove-storage-provider)