Data retention and inactive account deletion in Decidim

Decidim can delete or anonymize inactive participant accounts and send warning emails, but the retention period itself is a policy decision your organization must make, document and prove.

On this page

Which retention requirements Decidim helps you meet for inactive accounts

Decidim can enforce the platform side of an inactive-account rule: flagging participant accounts that have gone unused, deleting them after a set period, and sending warning emails beforehand. The period itself, the legal basis for keeping data while an account is idle, and any exceptions, such as records the organization must keep for public-records or legal reasons, remain decisions for the controller. The GDPR's storage limitation principle requires that personal data is not kept longer than needed for its purpose, and its security of processing duty (Article 32) covers the copies and systems where that data sits. Decidim helps with the first, but the policy and the evidence behind it are your responsibility.

Before you rely on any deletion setting, confirm in the admin interface and documentation for your exact Decidim version how the inactivity logic, the warning interval and the deletion step actually work. Only the 0.32.x and 0.31.x lines receive security updates, so a platform on an older branch needs an upgrade before its retention behavior can be trusted. Scheduled deletion and warning emails depend on background jobs (ActiveJob) and working SMTP delivery, so test both in staging with a dated test account. The Decidim installation documentation is the place to check how these services are configured in a production setup.

Keep records that show the rule works: the retention period you chose and why, the warning and deletion test results, and a dated log of what the scheduled jobs did. Extend the same thinking to backups, which hold deleted accounts until they expire, so a restore does not quietly bring them back. DeployOpen prepares the systems, configuration and evidence for this review inside your infrastructure, but it does not issue audit reports or certifications. The GDPR requires no certificate, and independent auditors or supervisory authorities judge whether your practice meets it.

Mapping retention requirements to Decidim settings

This table maps the GDPR controller duties we can cite from the supplied facts to what Decidim offers for inactive account handling, and what to confirm in the version you run. Read each row as a question to answer for your own organization, since the retention period itself is a decision your policy must record. Confirm exact setting names and scheduled-task behavior against the documentation for your installed version before you rely on them.

RequirementDecidim capabilityConfiguration to confirm
Controller duties under Chapter IV, including Article 24 (responsibility of the controller)Retention for inactive participant accounts is handled through the admin panel deletion settings and warning emails, which the controller must decide and documentWritten retention period and owner recorded in the published policy, and which settings in the admin panel match it
Security of processing under Article 32Scheduled deletion runs as background jobs through ActiveJob, so the job queue must be running for deletion to happenBackground worker is running, failed jobs are monitored, and the queue backend is included in backup and restore testing
Notice before deletion (controller transparency and accountable handling)Warning emails are sent through the configured SMTP service before inactive accounts are removedSMTP credentials, sender address and email templates are tested in staging, and bounced notices are checked
Accountability for documented decisions under Article 24Deletion settings are stored in the platform, so changes are made by admins and can be reviewedAdmin roles allowed to change retention settings are limited, and each change is logged in a change record outside Decidim
Deletion of data in backups and copies under Article 32Deleting a user in the application does not by itself remove copies in database backups or file storageBackup retention period, restore procedure for deleted accounts, and ActiveStorage file cleanup are defined and tested
Fines exposure under Article 83 for infringements of Articles 25 to 39Not a platform setting; the exposure comes from failing to apply the controls above in practiceEvidence of the configured period, job runs and notices is kept so you can show the controls were operating

Configuring inactive account deletion in order

This sequence produces a documented, tested retention setting for inactive participant accounts that matches your published policy. Each step builds on the one before it, so the settings you enable are supported, actually executed and provably working before participants are affected.

  1. Fix the retention decision in writing

    Before touching Decidim, the data protection lead and the platform owner agree in writing how long an account may stay inactive, what counts as activity, which notice participants receive before deletion, and what happens to their contributions. The decision should match the retention policy you publish and any legal basis your organization relies on. Confirm with your legal or data protection team whether any retention periods apply to public contributions, such as proposals or comments, that are separate from the account itself. The step is done when a signed decision record exists and the settings can be traced back to it.

  2. Confirm the Decidim version is supported

    Check the running version against the security policy. Decidim supports only the last two minor versions with security updates until version 1.0, which currently means the 0.32.x and 0.31.x branches. Versions 0.30.x and earlier receive no security fixes, so configuring new retention behavior on them adds work to an already exposed system. If you are on an unsupported branch, plan the upgrade first, following the one-minor-version-at-a-time path in the update guide, and then return to this sequence. The step is done when the exact release is recorded in your change log.

  3. Enable deletion and warning settings on staging

    On a staging copy of the platform, open the admin configuration for your version and locate the account deletion and inactivity warning options. Record the setting names exactly as your version presents them, because the names can differ between releases, and confirm in the release notes for your version what each one does. Enter the values from the written decision, including the warning schedule and the text participants receive. The step is done when every setting matches the decision record and the change is saved in your configuration history.

  4. Verify background jobs and SMTP run the work

    Inactivity deletion and warning emails depend on background processing and outgoing mail. Confirm that the ActiveJob worker is running in the staging environment and that the scheduled task that triggers the retention check is configured and logged. Send a test message through the configured SMTP service and confirm it arrives, and check that the sender address and reply path match what participants will see. The step is done when a scheduled run is visible in the job logs and a test email is received from the staging address.

  5. Test with a dummy account

    Create a dummy participant account on staging and backdate its last activity, using a method your team agrees on and records. Let the scheduled process run, then check that the warning email is sent at the expected point and that the account is deleted or handled as the decision specifies. Verify that the dummy account's public contributions are treated as the decision says, and that no active account was affected. Repeat the test once with an account that logs in between the warning and the deletion to confirm the reset works. The step is done when the test results are written up with timestamps and screenshots of the outcome.

  6. Back up the database and apply to production

    Take a full database backup of production before any change, as the Decidim update guide recommends before changing a running installation. Then apply the same settings using the same change process, during a window your team has agreed, and confirm the scheduled task and mail delivery work on production as they did on staging. Keep the backup and the restore steps accessible until the first scheduled run has completed without errors. The step is done when the backup is confirmed restorable and production shows the same settings as staging.

  7. Record the configuration and the evidence

    Store the final configuration, the decision record, the version number, the staging test results and the first production run logs in your compliance evidence location. Note who owns the setting, how often the team reviews it, and what triggers a review, such as a new Decidim release or a change to the published retention policy. Link the published retention policy to the configuration record so an auditor or data protection officer can trace the setting from the public statement to the running system. The step is done when a reviewer outside the implementation team can follow the chain from policy to setting to evidence.

Evidence an auditor will ask for on account retention

Retention for inactive participant accounts is only as credible as the records behind it. The cards below list the artifacts to keep so that a reviewer can trace the written policy, the configured Decidim settings, the scheduled jobs that ran, and the deletion and backup behavior. These are artifacts to keep, not an audit result.

Written retention policy and approval

Keep the retention policy for inactive participant accounts as a versioned document, with the inactivity period, the warning schedule, the grounds for keeping data longer, and the named owner who approved it. Record the approval date and the approver. Check that the policy matches what the platform actually does, because a reviewer will compare the two line by line.

Configured settings with change history

Export the deletion and inactivity settings in use on the platform and store them with dated snapshots. Pair each value with the change ticket that justified it. Changes to the inactivity period should be traceable to a decision, not to a default that someone accepted during setup. Confirm where these settings live in your Decidim version before you rely on an export.

Job logs showing scheduled deletion ran

Keep the logs from the background job runner and the scheduled task that performs inactive account deletion. A reviewer will ask for runs over a sample period, the number of accounts processed, and any failed runs with the follow-up. Silence in the logs is not evidence that deletion happened, so confirm that a run produces a visible record.

Sample warning email records

Retain copies of the warning messages sent before deletion, along with SMTP delivery records for a sample of recipients. Each record should show the template version, the send time and the account it referred to. These records show that participants were given notice before deletion. Check that the wording in the email matches the policy.

Deletion and anonymization test results

Run deletion on a staging copy with test accounts that include contributions, comments and uploaded files. Record what was removed, what was anonymized, and what remained. Keep the test script, the expected results and the actual results. Retesting after each Decidim upgrade shows that the behavior has not changed silently.

Backup retention rules

Deleted accounts can persist in database backups until those backups expire. Document the backup retention period, the rule for restoring a backup that contains an account already deleted, and how that restore is re-deleted. Confirm the backup schedule with the team that runs PostgreSQL, since the answer depends on your own infrastructure.

How retention differs for self-hosted and container deployments

In a manual installation, Decidim runs as a Rails application on servers you manage, so you decide where each component runs. The installation guide covers production setup for background jobs through ActiveJob, file storage through ActiveStorage and outgoing mail through SMTP. Retention work depends on these components, so map each one to a host or service before you set a schedule.

  • Scheduled jobs: Run on the application host or on a worker process you define. Confirm which process runs background and scheduled jobs and which system user owns it.
  • SMTP logs: Usually sit with your mail relay or the external mail service you configured, so their retention is set by that provider. Ask the provider how long it keeps delivery records.
  • Database backups: Live on the PostgreSQL host or backup target your operations team controls. Schedule, location and expiry are yours to define, and backup copies can hold deleted account data until they expire.
  • Application logs: Written to the paths your Rails configuration sets. Confirm their location and rotation before you publish any deletion timeline.

Check that each location appears in your retention schedule and that a named owner is responsible for its deletion.

How an inactive account moves from warning to deletion

The flow starts at the last recorded activity on a participant account. When the inactivity threshold your policy sets is reached, a scheduled job running through ActiveJob sends a warning email over your SMTP service. A sign-in during the grace window keeps the account active. If none occurs, the job either anonymizes or deletes the account, a choice you must make for contributions. Check that copies in backups expire on a schedule you set, because the live database and backups are cleared at different times.

Diamonds mark the decision points the controller must define.

Common questions about retention and account deletion in Decidim

What does it cost to configure inactive account deletion in Decidim?

The cost is mostly the time of the people doing the work, plus any change to the environment that the work requires. Configuring the deletion settings and warning emails is usually a small part of the effort. The larger parts are agreeing the retention rule with the policy owner, testing that warnings and deletions behave as intended on staging, checking how deletion interacts with contributions that other participants can still see, and documenting the result. Decidim is free and open source under the AGPL-3.0, so there is no license fee for the software itself. Ask any partner for a quote built from a written scope that lists each of these steps, who performs them, and what is one-time versus recurring, such as periodic checks of the deletion job and the email templates after upgrades.

What drives the effort of a retention setup in Decidim?

Effort rises with the number of rules and the number of places personal data lives. A single inactivity period with one warning email is simpler than several account categories with different periods. Effort also rises if the platform uses several organizations, custom modules, social login providers or external identity systems, because each may hold or refer to accounts that need a consistent rule. Decisions about what happens to proposals, comments and votes after an account is deleted add review time. Ask for the scope to list the number of account types, the number of organizations in scope, the integrations touching user records and the number of email templates to review.

How long does it take to set up account retention in Decidim?

No duration can be given here without a researched figure, and the answer depends on the environment. The timeline is driven by how quickly the policy owner settles the retention period and the wording of the warning emails, how many environments must be tested before production, whether the platform is on a version that already receives security updates, and how many approval steps the organization requires for changes to personal data handling. A platform that is upgraded first, or that runs custom code around user records, will need extra testing time. Ask the partner for a timeline tied to milestones in the written scope and confirm which of those milestones depend on your own reviews.

What must our team provide before the work starts?

Three things are needed early. First, a named policy owner who can approve the inactivity period, the warning sequence and the handling of content left behind by deleted accounts. Second, administrator access to the Decidim instance, the deployment, and the mail system so that warning emails can be tested end to end. Third, a staging environment that mirrors production closely enough to test deletion without touching real participant data. You should also provide the current published retention policy, if one exists, and a list of any social login providers, custom modules or identity systems that interact with user accounts. Confirm with your partner how test data will be created and who will approve the test results.

Can our own team configure inactive account deletion without a partner?

Yes, if you have engineers who can operate a Ruby on Rails application with PostgreSQL, change Decidim settings, and test background jobs and outgoing email. Decidim is open source, so the configuration is visible in the code and documentation. The harder part is usually governance rather than code: agreeing the policy, documenting it, and proving that the configured behavior matches it. Internal teams should confirm which Decidim version they run, since security support covers only the last two minor versions, and should check the upgrade guidance before changing settings. A partner is most useful when the scope needs independent testing, cross-team review or a written evidence pack.

Does a configured retention setting prove that we comply with the GDPR?

No. A configured setting is evidence that you took a step, but it does not prove compliance on its own. The GDPR requires no audit, attestation or certificate, and it places responsibility for compliance on the controller. Certification under Article 42 is voluntary, is issued for at most three years by accredited certification bodies or supervisory authorities, and does not reduce the controller's responsibility. To show compliance you need a documented retention policy, the configuration record, test results from staging, records of deletion job runs, and a process for reviewing the setting after upgrades. Legal advice on the policy itself should come from your own counsel. Regulation (EU) 2016/679 is available on EUR-Lex.

Does DeployOpen provide audit reports for our Decidim retention setup?

No. DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms in your own infrastructure, and it prepares systems, controls and evidence for compliance assessments. It does not issue audit reports, attestations or certifications. Independent auditors and certification bodies perform those assessments. For this topic, a DeployOpen engagement can cover the configuration, the test plan, the documentation of the retention rule and the evidence your assessor will ask for. Confirm the exact deliverables in the written scope before work starts.

What goes wrong most often with inactive account deletion?

The most common problems are unclear rules, untested warnings and unexpected effects on content. Teams often set an inactivity period without deciding what counts as activity, so accounts are deleted that participants considered active. Warning emails may be sent from a mail server that is not configured for production, or they may never be sent because background jobs are not running. Deleting an account can also affect proposals, comments or votes that other people rely on, so the handling of anonymised contributions needs a decision before go-live. Finally, changes can be lost during upgrades if custom templates or code are not tracked. Test each path on staging and record the results.

How DeployOpen scopes and delivers retention configuration and evidence

DeployOpen treats data retention for Decidim as a written scope with configuration, testing and evidence delivered together. The work starts from your published retention policy and ends with settings your compliance team can review and repeat.

How we scope

  • Agree in writing which participant account states, inactivity periods and warning messages are in scope before work starts.
  • Map your published retention policy to the Decidim settings that control account deletion and warning emails.
  • Confirm which data stays with the controller and which parts of the process still need manual steps. Engagements are fixed-scope, with ongoing support available as a retainer.

How we build

  • Configure the deletion and warning email settings on your Decidim instance, and document each value against the policy clause it implements.
  • Test the sequence on staging with dummy accounts, checking warning timing, deletion behavior and what remains in linked contributions.
  • Review the SMTP and background job setup, since warning emails and scheduled deletions depend on both working in production.

How we hand over

  • Deliver a written configuration record listing each setting, its value, its owner and the policy section it supports.
  • Provide a test log showing the staging runs, the results and any gaps that need a decision from your legal or privacy team.
  • Document the operating routine, including who reviews the settings after each Decidim upgrade and how changes are recorded.

How we support

  • Retest retention settings after each Decidim minor version upgrade, following the upgrade steps for that release.
  • Keep the evidence pack current when the published retention policy or your legal requirements change.
  • Offer ongoing support and periodic retesting as a retainer, scoped in writing with your team.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.