kasy remove
Remove features you no longer use.
Implementation
Via MCP: ask your assistant "remove ads from my project". It runs remove_feature for you. See Kasy MCP.
-
Commit the project first, just in case.
-
Run the command for the feature you want to remove:
kasy remove ads kasy remove revenuecat kasy remove notificationsThe CLI removes code, dependencies, and related config entries. Auth, Settings, and Push also work:
kasy remove authentication,kasy remove settings,kasy remove notifications(leaves NoOp stubs so the app still compiles).It does not delete backend data or a Firebase companion project in GCP (only removes the module from the app).
-
Confirm what's still on:
kasy add --listVia MCP: "what's still on in the project?" (
list_features).
Requires a license. Doesn't undo data already written to the backend (e.g., users in Firestore).
Information
What the command undoes
For the removed feature, the CLI:
- Sets the flag in
lib/core/config/features.dartback tofalse - Drops the feature's
--dart-defineentries from.vscode/launch.json - Drops the same entries from the
runandrun-prodtargets in theMakefile - Drops the feature's variables from
.env.example - Drops the feature's dependencies from
pubspec.yaml - Reverts the flags in
kit_setup.json - Deletes the files and folders the feature's patch had copied in
- Regenerates no-op stubs in place of the removed code, so the project still compiles
- Regenerates
router.dartandmain.dartwithout the feature's routes and init - Runs
flutter pub getandbuild_runnerat the end
Shared dependency
sentry_flutter is used by three features: sentry, revenuecat and facebook. When you remove one of them, the CLI checks whether the others are still on before dropping the dependency from pubspec.yaml. If it's still needed, it says so and keeps it.
Cases that need extra care
| Feature | Detail |
|---|---|
ci | Deletes .github/workflows/, .gitlab/ and codemagic.yaml. If you customized any of them, recover with git restore |
web | Turns the flag off but leaves the web/ folder in place. Those files are harmless in a native build |
ai_chat | On Supabase it also deletes supabase/functions/ai-chat/ |
Last updated on 08/23/2026

