Skip to content

Commit 9a4b4ed

Browse files
Merge pull request #12486 from nextcloud/cleanup-preview-command
2 parents 82b00ab + d93e2cf commit 9a4b4ed

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

admin_manual/configuration_files/previews_configuration.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ values.
3333

3434
But deemed necessary, following changes have to be made in ``config/config.php`` file. As a best practice, take a backup of this config file before making a lot of changes.
3535

36+
After changing one or more of the following parameters, you might want to run the ``preview:cleanup`` occ command to get rid of the previews with obsolete settings.
37+
See :ref:`occ_cleanup_previews` to learn more.
38+
3639
Disabling previews:
3740
^^^^^^^^^^^^^^^^^^^
3841

admin_manual/occ_command.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -872,6 +872,18 @@ with the files on the actual storage.::
872872
Arguments:
873873
folder The appdata subfolder to scan [default: ""]
874874

875+
.. _occ_cleanup_previews:
876+
877+
Cleanup previews
878+
^^^^^^^^^^^^^^^^
879+
880+
``preview:cleanup`` removes all of the server's preview files. This is useful
881+
when changing the previews configuration (sizes, quality or file), and especially
882+
on systems using Object Storage as Primary Storage where the ``appdata_xxx/preview``
883+
folder can't simply be deleted.
884+
885+
See :doc:`configuration_files/previews_configuration`.
886+
875887

876888
Cleanup
877889
^^^^^^^

0 commit comments

Comments
 (0)