Skip to content

feat(occ): app:purge, to find and delete what disabled and removed ap… - #66381

Open
Fredobumma wants to merge 1 commit into
nextcloud:masterfrom
Fredobumma:feat/app-purge
Open

Fredobumma wants to merge 1 commit into
nextcloud:masterfrom
Fredobumma:feat/app-purge

Conversation

@Fredobumma

Copy link
Copy Markdown

Summary

Disabling or removing an app leaves its tables, config values, background jobs and app data behind, with no way to find or remove them short of editing the database. This adds occ app:purge:

  • occ app:purge lists apps that aren't enabled but still have data.
  • occ app:purge <app-id> shows what one app left: tables, app config, user preferences, background jobs, migration records and its app data folder.
  • --force deletes it. Enabled, shipped and core apps are refused.

Tables are found by replaying the app's migrations, so they're only listed while its code is still there; for a removed app the command says so and points to occ db:schema:check -v. occ app:remove --help now mentions app:purge.

Checklist

@Fredobumma
Fredobumma requested a review from a team as a code owner November 5, 2026 19:13
@Fredobumma
Fredobumma requested review from provokateurin and salmart-dev and removed request for a team November 5, 2026 19:13

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Detect / Delete App Data

1 participant