Mattermost data retention and legal hold for GDPR and litigation: what the platform covers
Your legal or privacy team needs to delete personal data once it is no longer necessary under GDPR storage limitation, yet still preserve specific messages when litigation or a regulatory investigation starts. Mattermost helps with two of those jobs: retention schedules and legal hold. Its data retention feature applies a global policy and custom policies per team or channel to messages and file uploads, and it can optionally preserve pinned posts that would otherwise be deleted. The Legal Hold plugin suspends deletion for named users. It does not decide how long data should be kept, maintain your records of processing activities, write privacy notices, or provide certification. Those remain governance work that your organization owns.
Both retention policies and the Legal Hold plugin require the Enterprise or Enterprise Advanced plan, and the Legal Hold plugin is licensed on those plans as well. Confirm the exact plan entitlements for your version with Mattermost before you design around them, because the pricing page lists no public prices and plan contents can change. Retention jobs run daily on a schedule, and permanent deletion is irreversible, so a policy that is too aggressive cannot be undone from the server. Test policies on a non-production copy with representative channels before you enable them against live history.
Retention and legal hold interact, and the order of operations matters. Ask your counsel which custodians and channels are under hold, then confirm in a test environment that held users' data is excluded from the deletion job you intend to run. Document the retention criteria per data category so the periods can be stated in your privacy notices and recorded in your processing records, which the GDPR expects to include erasure time limits where possible. The Mattermost data retention policy documentation and the Mattermost legal hold documentation describe the settings you will need to confirm against your version. Finally, GDPR contains no audit or certificate requirement, so keep your own evidence of configured policies, change records and hold decisions for your supervisory authority or auditor.
Mapping GDPR storage limitation and legal hold requirements to Mattermost settings
This table maps GDPR storage limitation, records of processing and privacy notice duties to the Mattermost retention and legal hold settings that support them. Rows marked as decision-dependent need a documented retention decision from your legal and privacy teams before any setting is changed. Read each row as a requirement, the configuration it needs, and the decision you must record.
| Requirement or setting | Configuration needed in Mattermost | Decision or evidence to record |
|---|---|---|
| Article 5(1)(e) storage limitation | Set a global retention policy on Enterprise or Enterprise Advanced for messages and file uploads, then add custom policies for teams or channels that need shorter or longer periods. | Retention periods by data category, justified by processing purpose. Decision-dependent. |
| Article 5(1)(e) and channel-level exceptions | Create custom retention policies per team or channel. Policies run as a daily scheduled job, so expect deletion to lag the configured period by up to a day. | Named channels with a documented reason for a period other than the global default. Decision-dependent. |
| Permanent deletion behavior | Confirm that retention deletes data permanently and irreversibly before enabling a policy. Test on a non-production copy first. | Test record showing a deleted message cannot be restored, and an approval to proceed. Setting plus test. |
| Pinned posts beyond the retention period | From Mattermost v10.10, enable the option to preserve pinned posts that exceed the retention period, if your policy allows it. | A rule that pinned content is kept only where a documented purpose applies. Decision-dependent. |
| Article 30(1)(f) time limits for erasure | Export the configured retention periods per team and channel and keep them with the record of processing activities. | Record of processing entries listing erasure time limits for each data category, where possible. Evidence from configuration export. |
| Articles 13(2)(a) and 14(2)(a) storage period in notices | No Mattermost setting produces this text. Align the privacy notice wording with the retention periods you configured. | Privacy notice stating the storage period or the criteria used to set it. Decision-dependent and reviewed by legal. |
| Legal hold for litigation or investigations | On Enterprise or Enterprise Advanced, install and configure the Legal Hold plugin, then place holds on named users whose data must be preserved. | Hold notice, custodian list, scope and release date. Decision-dependent and set by counsel. |
| Legal hold overriding deletion | Confirm in a test that held users' data is not removed by retention policies while the hold is active, and that the hold can be released cleanly. | Test results and a documented release procedure. Setting plus test. |
| Erasure requests during a hold | Holds and erasure requests can conflict. Confirm the process with counsel before honoring an erasure request for a held user. | Written conflict-resolution rule approved by legal and privacy teams. Decision-dependent. |
Which evidence Mattermost retention and legal hold produce for auditors
A retention and legal hold setup is only as defensible as the records behind it. The cards below list the artifacts an auditor, data protection officer or litigation team will ask for, and the checks to run before any deletion job starts.
Exported retention settings
Export the current global and custom retention policies as a dated record, covering which teams and channels carry a shorter period and whether pinned posts are preserved. Confirm with Mattermost how the settings are exported in your version, and store a copy outside the server so the policy in force on any given date can be shown. Keep the export with every change so a reviewer can see what was in place when a message was removed.
- Pinned post option
- v10.10
Documented retention schedule
Map each category of personal data in Mattermost, such as direct messages, channel posts and file uploads, to a stated storage period and the reason for it. This schedule should match the time limits recorded in your record of processing activities and the storage period given in privacy notices. Where a category has no defined limit, record the criteria used to set it instead.
GDPR text on EUR-LexLegal hold scope records
Record each hold with the named users, the matter it relates to, the date it was applied and the person who authorized it. Scope records show that deletion was suspended only for relevant users, which limits the privacy impact of the hold. Confirm which hold details Mattermost stores itself and which you must keep in your case management system.
Legal hold docsHold creation and release trail
Keep a trail of every hold created, changed and released, including timestamps and the approver. Auditors will test whether holds were lifted once a matter closed, so a release without a matching decision record is a finding. Confirm with Mattermost which audit log entries it writes for hold actions in your version, and forward them to your central log store.
Pre-deletion evidence capture
Permanent deletion under a retention policy is irreversible, so decide what must be preserved before the daily job runs. Export or archive the records that a hold or a legal obligation requires, and confirm that the export completed before the policy takes effect. Run a test on a non-production copy first so you can see what the job removes before it touches production data.
Erasure request log
Log each erasure request from a data subject with its receipt date, the systems checked, the decision and the reason for any retained data. The EDPB has identified challenges in fully implementing the right to erasure, so a documented process for requests that conflict with a hold is what reviewers will look for. Confirm how Mattermost handles deletion of individual user content in your version before promising a timeline.
EDPB erasure newsHow legal hold and retention policies interact in a daily deletion job
A legal hold must be in place for the affected users before the next retention run, because retention executes as a daily scheduled job and permanent deletion is irreversible. Mattermost applies the global retention policy and any custom policies per team or channel for messages and file uploads, so a message that matures for deletion on Tuesday night is gone by Wednesday morning unless a hold already covers its author or the channel. Check the order of events in your own environment: when a custom policy is created or shortened, confirm the hold status of every user in its scope first, and test the change on a non-production server before it reaches production data. Confirm with Mattermost how the legal hold plugin and the retention job are sequenced in your version, since that ordering determines whether a late hold can rescue data already scheduled for removal.
Holds and retention policies are separate controls that you must configure and review together. The Legal Hold plugin, available on Enterprise and Enterprise Advanced, preserves the data of relevant users for litigation, regulatory investigations and audits, and it can be combined with eDiscovery integration and retention policies. Decide which role owns each setting, who can place and release a hold, and how a released hold returns data to normal retention so that expired material is not kept indefinitely by accident. Also confirm whether the data retention policy documentation covers pinned posts in your version, since preserving pinned posts from v10.10 is an optional setting that changes what the job removes.
The harder decision is whether a hold overrides the storage limitation principle in Article 5(1)(e) of the GDPR. A hold is a legitimate reason to keep data longer, but it must be justified by a specific legal obligation or claim, documented, limited to the named users and reviewed for expiry, not kept open by default. Record the hold basis, the owner and the release criteria in your records of processing and your retention schedule, and reflect the storage period or criteria in privacy notices. Because legal advice decides these questions, ask your counsel and data protection officer to sign off on the hold rules before the first hold is applied.
What Mattermost does not decide for your GDPR and litigation program
Mattermost can delete and preserve data on schedule, but it does not decide how long you may keep personal data or how you answer a data subject or a court. The cards below cover the decisions and gaps that stay with your compliance, legal and platform teams.
Lawful basis and retention periods
Mattermost applies the retention periods you configure, but it cannot tell you what those periods should be. Article 5(1)(e) limits storage to what is necessary for the purpose, and your record of processing and privacy notices must state time limits or the criteria used to set them. Ask legal counsel to set a period for each category of message and file, then map each to a global or team or channel policy before you rely on it.
GDPR textErasure requests and active holds
A data subject's erasure request does not automatically override a legal hold or a retention obligation you are required to meet. Decide in advance who reviews each request, which holds it conflicts with, and how the decision is recorded. Test a sample request in a staging server to confirm which copies are removed and which remain under hold.
Backups and replicas
Retention policies delete data from the live database, but backups, database read replicas and search replicas may still hold copies of deleted messages until they expire. Document how long each backup set is kept, who can restore it, and whether restoring a backup could bring back content that was erased. Confirm the retention behavior of your backup tooling with your own environment team.
Files stored outside retention scope
Retention settings cover messages and file uploads, but the storage location of files is a separate control. In a high availability cluster, files sit on shared storage such as Amazon S3, an S3-compatible service or NAS, and copies may also exist on client devices or in exports. Map every storage location, confirm that deletion reaches each one, and check the file lifecycle rules you set on object storage.
Guest and offboarded user handling
Retention rules apply to content regardless of who posted it, but account removal is a separate process. Guests, contractors and departed employees can leave messages behind after their accounts are disabled. Define how long their content is kept, whether it is preserved for a hold, and who signs off on deletion when an account is closed. Confirm how deactivated accounts are handled in your identity provider sync.
Legal hold docsNo GDPR audit or certificate
The GDPR requires no audit, attestation or certificate, so no document from Mattermost or DeployOpen proves that your deployment is compliant. Article 42 certification is voluntary, is issued for at most three years, and does not reduce the controller's or processor's responsibility for compliance. Treat your records, configuration evidence and deletion logs as your own proof, and ask your data protection officer which evidence your supervisory authority would expect to see.
- Maximum certification term
- 3 years
Configuring retention and legal hold in the right order
This sequence sets retention rules, confirms the licensing that unlocks them, and proves that deletion and holds behave as the retention schedule intends before any production data is affected. Each step produces a written record that your compliance, legal and platform teams can review.
Document the retention schedule per data category
Compliance or records owners, with legal counsel, list each category of Mattermost data (channel messages, direct messages, file uploads, pinned posts) and set a retention period or a stated criterion for each one. Under Article 5(1)(e) and the storage-limitation records in Articles 13, 14 and 30, the schedule should state the time limits you apply and why. Done when the schedule is approved, versioned and linked to the lawful basis or business purpose for each category.
Confirm the plan includes retention and legal hold
The platform owner checks the license with Mattermost before configuration starts. Data retention and the Legal Hold plugin are documented for Enterprise and Enterprise Advanced, so a Professional subscription will not support this design. Ask the vendor to confirm the entitlement in writing and record the plan name and seat count. Done when the entitlement is confirmed and the procurement file reflects it.
Set the global retention policy
A Mattermost system administrator enables the global policy in the System Console to match the default period in the approved schedule. Policies run as a daily scheduled job, and permanent deletion is irreversible, so the first run should be reviewed against a copy of the data. Done when the policy is saved, the settings export is stored in change control and the administrator has noted the time of the first scheduled run.
Add custom team and channel policies
For categories that need a shorter or longer period than the global default, the administrator creates custom policies per team or per channel. Each custom policy should map to one row in the schedule, and overlaps should be checked so that a channel does not fall under two conflicting rules. Done when every custom policy traces to a schedule entry and a test channel confirms the expected scope.
Decide pinned post behavior on v10.10 or later
From v10.10, retention can optionally preserve pinned posts that exceed the retention period. Legal, records and product owners decide whether pinned posts are business records that must survive, or whether pinning should not override deletion. Record the decision in the schedule and confirm the server version supports the setting before enabling it. Done when the decision is documented and tested on a non-production server.
Install and test the Legal Hold plugin on non-production
The platform team installs the Legal Hold plugin on a staging server that mirrors production settings, including retention policies and any eDiscovery integration. Test creating a hold for a sample user, confirm that the held user's data is preserved while retention runs, and confirm that releasing the hold restores normal retention. Done when the staging test results, including the hold and release logs, are reviewed by legal counsel.
Verify deletion and hold behavior before go-live
Before production use, the team runs a scripted test plan with illustrative test accounts. It checks that messages and files past the period are removed, that held users' content survives, that pinned post settings work as decided, and that custom policies do not delete data outside their scope. Record each result against the schedule, and have compliance sign off. Done when every test case has a recorded pass, and any failure has an owner and a fix before the policy is enabled in production.
How retention jobs, legal holds and backups fit together
The daily retention job starts in the Mattermost server and reads the global and custom policies for messages and files. Before it deletes anything, it checks whether the post author or channel member is under a legal hold, and held users are exempted. Eligible rows are removed from PostgreSQL and eligible files are removed from file storage, but backups and database replicas keep copies made earlier, outside the job's reach. Check that held data is excluded in each store and that your backup retention matches your storage limitation position.
Retention deletes from live stores while backups and replicas keep earlier copies.
Questions buyers ask about Mattermost retention, legal hold and GDPR
What does a Mattermost retention and legal hold setup cost?
No price is published for this work, so the quote follows from the written scope. The main cost components are the Mattermost subscription, which is sold as a prepaid annual plan based on seat licenses, the DeployOpen implementation effort, and the storage and backup capacity you run yourself. Retention policy and legal hold features sit on Enterprise and Enterprise Advanced plans, so plan level is the first cost driver. Ask for the number of retention policies (one global plus any per team or channel), the number of legal holds expected, backup scope and documentation deliverables, each priced separately so you can see what recurs.
How long does it take to set up retention and legal hold?
The duration depends on the environment and the decisions made before configuration starts. A single global policy on an existing server takes far less effort than a design that sets different periods for each team, channel and file type, and that also requires sign-off from legal and privacy. Hosting choices matter too: a high availability cluster needs shared file storage and backup coverage, and an air-gapped or regulated deployment adds review steps. Ask for the timeline in the written scope, with milestones for policy approval, test runs on a non-production server and the first full retention cycle.
What do legal, privacy and IT teams need to provide?
Each group owns a different decision. Legal defines which matters and custodians need preservation and how long records must be kept. Privacy defines the retention periods that fit the purposes of processing and what goes into the record of processing activities and privacy notices. IT owns the server, database, storage, backups, identity settings and the change window for policy jobs. Retention runs as a daily scheduled job and permanent deletion is irreversible, so IT should confirm backups exist before the first policy goes live. Put these responsibilities and named approvers in the scope document before work starts.
Can our own team set up retention and legal hold without a partner?
Yes, a capable Mattermost administrator can configure global and custom retention policies and the Legal Hold plugin using the vendor documentation, provided the plan level includes these features. The harder work is the design: deciding periods for each category of data, testing that deletion does not remove records under hold, documenting the decisions, and proving the setup works on a schedule. Many teams keep the configuration in-house and use a partner for the design review, testing and documentation. Assess your team's time, and confirm that someone will own the daily job and hold reviews after go-live.
Does a legal hold satisfy GDPR storage limitation?
No. A legal hold is a litigation and investigation tool, and it does not make a retention period compliant by itself. Article 5(1)(e) requires personal data to be kept no longer than necessary for the purposes of processing, so any data kept under hold needs a documented lawful reason and a defined end date. Article 30(1)(f) expects time limits for erasure in the record of processing activities where possible, and Articles 13(2)(a) and 14(2)(a) require privacy notices to state the storage period or the criteria used to set it. Ask your privacy counsel to confirm how holds are recorded and released.
Does the GDPR require an audit or certificate for our retention setup?
No. The GDPR requires no audit, attestation or certificate. Certification under Article 42 is voluntary, is issued for at most three years by accredited bodies or supervisory authorities, and does not reduce the controller's responsibility. DeployOpen prepares the configuration, procedures and evidence for your own compliance review, but does not issue audit reports or certifications. Ask your legal and privacy teams which evidence they need, such as policy exports, job logs and hold records, and confirm with the supervisory authority or auditor what they will accept.
What should we ask for in a quote for this work?
Ask for a written scope listing the Mattermost plan level assumed, the number of retention policies, the expected legal holds and custodians, the environment (single server or high availability cluster), backup and restore testing, and the documents delivered. Also ask what is one-time and what recurs, such as subscription renewals, backup storage and periodic hold and policy reviews. Confirm who is responsible for updating retention when Mattermost releases a new server version, since the monthly and Extended Support Release cycle affects test effort. Finally, ask how deletion testing is done before production use.
How DeployOpen works on this
DeployOpen plans and configures Mattermost retention and legal hold inside your own infrastructure, starting from the records, privacy and litigation obligations your teams already carry. The work is agreed in writing before it starts, so the retention rules, hold procedures and evidence are reviewed by your compliance, legal and security staff before they go live.
How we scope
- Inventory which teams, channels, file types and DM populations fall under records, privacy or litigation obligations.
- Agree in writing which retention periods, pinned post handling and legal hold procedures are configured and who approves them.
- Record which decisions stay with your legal and privacy teams, including the storage periods used in privacy notices and records of processing.
- Confirm which Mattermost plan levels and plugins your environment has, since retention and Legal Hold depend on Enterprise or Enterprise Advanced.
How we build
- Configure the global retention policy and any custom team or channel policies, then test them against sample data in a non-production environment.
- Set up the Legal Hold plugin and test hold creation, release and the effect on deletion for a named test user.
- Verify that scheduled deletion jobs run as expected and that permanent deletion behavior is understood before production use.
- Connect retention and holds to any eDiscovery or archiving integration you have agreed, and test the handoff end to end.
How we hand over
- Deliver a written configuration record covering each policy, its scope, its schedule and the people authorized to change it.
- Provide a legal hold runbook covering who can place or release a hold, how custodians are notified and how holds are logged.
- Document the storage limitation rationale and the inputs your team needs for records of processing and privacy notices.
- Walk your administrators through daily checks, change control and the steps for reviewing retention settings after a Mattermost upgrade.
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer after handover.
- Retest retention and legal hold behavior after Mattermost server upgrades, including upgrades between monthly releases and Extended Support Releases.
- Review configuration changes when your legal, privacy or records requirements change, including updates to GDPR guidance you track.

