You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: add data retention support for preserving pinned posts
- Add Preserve pinned posts configuration setting in compliance settings
- Update data retention policy documentation to reflect pinned post preservation option
- Available from Mattermost server v10.10 onward
Closes#8070
Co-authored-by: Carrie Warner (Mattermost) <cwarnermm@users.noreply.github.com>
Copy file name to clipboardExpand all lines: source/comply/data-retention-policy.rst
+8-3Lines changed: 8 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,8 @@ To set a global data retention policy:
22
22
2. Select **Edit** from the menu located to the right of the **Global retention policy** table.
23
23
3. Specify a global retention policy for channel messages and direct messages by selecting a **Channel & direct message retention** option from the dropdown, then set how long to keep those messages in hours, days, or years. When a time is set, messages and file attachments older than the duration you set will be deleted. The minimum retention period is one hour.
24
24
4. Select a **File retention** option from the dropdown. Set the number of hours, days, or years to keep files. When a time is set, uploaded files which are older than the duration you set will be deleted from your file storage system (either from your local disk or your Amazon S3 service as specified in **System Console > Environment > File Storage**). The minimum retention period is one hour. The global file policy deletes all files regardless of whether they're in a direct message, private, or public channel.
25
-
5. Under the **Policy log** section, select **Edit** to specify the start time of the daily scheduled data retention job. Choose a time when fewer people are using your system.
25
+
5. *(Available from Mattermost server v10.10)* Optionally enable **Preserve pinned posts** to prevent pinned posts from being deleted by data retention policies, even if they exceed the configured retention period.
26
+
6. Under the **Policy log** section, select **Edit** to specify the start time of the daily scheduled data retention job. Choose a time when fewer people are using your system.
26
27
27
28
Select **Save**. Messages and files older than the duration you set will be deleted at the specified server time, as applicable.
The message is removed from the Mattermost user interface and deleted from the ``Posts`` table. The message is no longer searchable and cannot be retrieved in pinned posts or saved posts lists.
59
+
The message is removed from the Mattermost user interface and deleted from the ``Posts`` table. The message is no longer searchable and cannot be retrieved in saved posts lists.
59
60
60
61
Replies that did not exceed the message duration are still displayed in the user interface. However, further replies are no longer possible.
61
62
62
-
If there was a file attached to the message, it will be removed from the user interface only.
63
+
If there was a file attached to the message, it will be removed from the user interface only.
64
+
65
+
.. note::
66
+
67
+
From Mattermost server v10.10, you can optionally preserve pinned posts when data retention policies delete messages by enabling the **Preserve pinned posts** setting in **System Console > Compliance > Data Retention Policies**. When enabled, pinned posts will not be deleted even if they exceed the configured retention period.
63
68
64
69
Why can I still see messages that were supposedly deleted?
Copy file name to clipboardExpand all lines: source/configure/compliance-configuration-settings.rst
+22Lines changed: 22 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -79,6 +79,28 @@ By default, files are kept forever. If **Hours**, **Days**, or **Years** is chos
79
79
80
80
From Mattermost v9.5, when a ``FileRetentionHours`` value is configured, the ``FileRetentionDays`` value must be 0 in the ``config.json`` file. Conversely, when a ``FileRetentionDays`` value is configured, the ``FileRetentionHours`` value must be ``0``.
:description: Controls whether pinned posts are preserved when data retention policies delete messages. Available from Mattermost server v10.10.
88
+
89
+
Preserve pinned posts
90
+
~~~~~~~~~~~~~~~~~~~~~
91
+
92
+
*Available from Mattermost server v10.10*
93
+
94
+
Controls whether pinned posts are preserved when data retention policies delete messages. When enabled, pinned posts will not be deleted by data retention policies, even if they exceed the configured retention period.
95
+
96
+
**True**: Pinned posts are preserved and will not be deleted by data retention policies.
97
+
98
+
**False**: **(Default)** Pinned posts are deleted according to the configured data retention policy.
0 commit comments