File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ Encryption
1111
1212 encryption
1313 encryption:change-key-storage-root Change key storage root
14+ encryption:clean-orphaned-keys Scan the keys storage for orphaned
15+ keys and remove them
1416 encryption:decrypt-all Disable server-side encryption and
1517 decrypt all files
1618 encryption:disable Disable encryption
@@ -84,6 +86,16 @@ will be migrated to drop their legacy filekey on the first modification. If you
8486old files from Nextcloud<25 still using base64 encoding this will migrate them to the
8587binary format and save about 33% disk space.
8688
89+ ``encryption:clean-orphaned-keys `` scans the key storage for keys that no longer
90+ have a corresponding file and removes them. When run, it iterates over all user
91+ key stores, reports any orphaned keys found, and then interactively asks whether
92+ to delete all of them at once or specific ones individually::
93+
94+ sudo -E -u www-data php occ encryption:clean-orphaned-keys [<user>]
95+
96+ The optional ``user `` argument limits the scan to a single user. If omitted, all
97+ users are scanned.
98+
8799See :doc: `../configuration_files/encryption_configuration ` to learn more.
88100
89101.. _federation_sync_label :
You can’t perform that action at this time.
0 commit comments